Guest User

Untitled

a guest
Aug 17th, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ip rule add fwmark 2 table 3
  2. ip route add default via 192.168.2.2 table 3
  3. ip route flush cache
  4. iptables -t mangle -A OUTPUT -p tcp -m multiport --dport 25,465 -j MARK --set-mark 2
  5. iptables -t nat -A POSTROUTING -o ovpns1 -j SNAT --to-source 192.168.2.1
  6. sysctl -w net.ipv4.conf.ovpns1.rp_filter=2
  7.  
  8. <rule priority="0" table="mangle" ipv="ipv4" chain="OUTPUT">-p tcp -m multiport --dport 25,465 -j MARK --set-mark 2</rule>
  9. <rule priority="0" table="nat" ipv="ipv4" chain="POSTROUTING">-o ovpns1 -j SNAT --to-source 192.168.2.1</rule>
RAW Paste Data