daily pastebin goal
81%
SHARE
TWEET

routing configuration

a guest Feb 26th, 2014 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ip route add table mkvdmz 10.0.2.0/24 dev mkvdmzbr0  proto kernel  scope link  src 10.0.2.1
  2. ip route add table mkvdmz default via 10.1.63.1
  3. ip route add table intra 10.0.3.0/24 dev mkvdmzbr0  proto kernel  scope link  src 10.0.3.1
  4. ip route add table intra default via 192.126.16.90
  5. iptables -t mangle -A PREROUTING -s 10.0.2.0/24 -j MARK --set-mark 2
  6. iptables -t mangle -A PREROUTING -s 10.0.3.0/24 -j MARK --set-mark 3
  7. iptables -t nat -A POSTROUTING -o eth4 -j SNAT --to-source 10.1.63.202
  8. iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 192.126.16.90
  9. ip rule add fwmark 3 table intra
  10. ip rule add fwmark 2 table mkvdmz
  11. ip route flush cache
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top