0

I want to make the following persistent after a reboot.

create virtual interface on eth0(ethernet)..

sudo ip addr add 192.168.1.x dev eth0 label eth0:x

have interface use a specific routing table (number must be unused but is otherwise arbitrary)

sudo ip rule add from 192.168.1.x table 401

now create rule in that table

sudo ip route add default via 192.168.1.1 dev eth0:0 table 401

protect the ip port by dropping any packets from the VPN tunnel

sudo iptables -A INPUT -i tun0 -p tcp -m tcp --dport 50000 -j DROP

I also cannot get my table 401 displayed with ip route list

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.