Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ sudo vim /etc/iproute2/rt_tables
- Press "i"
- Remove the line that says "1 admin" at the bottom, save by hitting ESC, then :wq ENTER
- $ sudo echo "1 admin" >> /etc/iproute2/rt_tables
- $ sudo ip rule del from 10.0.0.127/24 table admin
- $ sudo ip rule del to 10.0.0.127/24 table admin
- $ sudo ip route del 10.0.0.0/24 dev eth1 src 10.0.0.127 table admin
- $ sudo ip route add 10.0.0.0/24 dev eth1 src 10.0.0.127 table admin
- $ sudo ip route add default via 10.0.0.1 dev eth1 table admin
- $ sudo ip rule add from 10.0.0.127/24 table admin
- $ sudo ip rule add to 10.0.0.127/24 table admin
- $ sudo service vsftpd restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement