Advertisement
Guest User

FF Direct Internet (aka Mattes langsamer Tod)

a guest
Sep 18th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. iptables -t mangle -A PREROUTING -p tcp --dport 21 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  2. iptables -t mangle -A PREROUTING -p tcp --dport 22 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  3. iptables -t mangle -A PREROUTING -p tcp --dport 80 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  4. iptables -t mangle -A PREROUTING -p tcp --dport 110 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  5. iptables -t mangle -A PREROUTING -p tcp --dport 143 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  6. iptables -t mangle -A PREROUTING -p tcp --dport 443 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  7. iptables -t mangle -A PREROUTING -p tcp --dport 465 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  8. iptables -t mangle -A PREROUTING -p tcp --dport 993 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  9. iptables -t mangle -A PREROUTING -p tcp --dport 995 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  10. iptables -t mangle -A PREROUTING -p tcp --dport 5228:5230 -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
  11.  
  12. ip rule add from all pref 5 fwmark 0x4 table main
  13.  
  14. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement