Hi all,
I've got an openwrt router with 2 pppoe sessions setup. Using the mangle table with the iptables MARK
I've got it setup to route certain traffic through ppp1 with ppp0 being the default.
However, when my ppp1 account is capped the ip route for the table containing the MARKed packets
fails and all the traffic goes through the default ppp0. I don't want this to happen. I was wondering
if there is somewhere to change this.
Maybe detect that the ip route add command has failed and create an ip route unreachable or prohibit.
Or has a cronjob which checks if the ppp1 interface is up and route accordingly.
Any help with a solution would be greatly appreciated.
Here's a quick overview of my routing setup.
#echo 201 torrent>> /etc/iproute2/rt_tables
#
#iptables -A PREROUTING -t mangle -s 192.168.0.8 -p tcp --destination-port ! 80 -j MARK --set-mark 1
#iptables -A PREROUTING -t mangle -s 192.168.0.8 -p udp --destination-port ! 80 -j MARK --set-mark 1
#
#ip rule add fwmark 1 table torrent
#
#ip route add default via 196.209.48.1 dev ppp1 table torrent
Thanks