Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. $ sudo vim /etc/iproute2/rt_tables
  2.  
  3. Press "i"
  4. Remove the line that says "1 admin" at the bottom, save by hitting ESC, then :wq ENTER
  5.  
  6. $ sudo echo "1 admin" >> /etc/iproute2/rt_tables
  7.  
  8. $ sudo ip rule del from 10.0.0.127/24 table admin
  9.  
  10. $ sudo ip rule del to 10.0.0.127/24 table admin
  11.  
  12. $ sudo ip route del 10.0.0.0/24 dev eth1 src 10.0.0.127 table admin
  13.  
  14. $ sudo ip route add 10.0.0.0/24 dev eth1 src 10.0.0.127 table admin
  15.  
  16. $ sudo ip route add default via 10.0.0.1 dev eth1 table admin
  17.  
  18. $ sudo ip rule add from 10.0.0.127/24 table admin
  19.  
  20. $ sudo ip rule add to 10.0.0.127/24 table admin
  21.  
  22. $ sudo service vsftpd restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement