daily pastebin goal

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 dev mkvdmzbr0  proto kernel  scope link  src
  2. ip route add table mkvdmz default via
  3. ip route add table intra dev mkvdmzbr0  proto kernel  scope link  src
  4. ip route add table intra default via
  5. iptables -t mangle -A PREROUTING -s -j MARK --set-mark 2
  6. iptables -t mangle -A PREROUTING -s -j MARK --set-mark 3
  7. iptables -t nat -A POSTROUTING -o eth4 -j SNAT --to-source
  8. iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source
  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