From BOLA, 2 Years ago, written in Plain Text.
This paste is a reply to from - go back
Viewing differences between and iptables
  1. root@cvps174924115500:~# sysctl -a | grep \\.rp_filter && sysctl -a | grep \\.forwarding && sysctl -a | grep \\.tcp_fwmark_accept
  2. sysctl: separators should not be repeated: /.fake
  3. sysctl: separators should not be repeated: /.fake
  4. net.ipv4.conf.all.rp_filter = 0
  5. net.ipv4.conf.default.rp_filter = 0
  6. net.ipv4.conf.lo.rp_filter = 0
  7. net.ipv4.conf.venet0.rp_filter = 0
  8. net.ipv4.conf.all.forwarding = 1
  9. net.ipv4.conf.default.forwarding = 1
  10. net.ipv4.conf.lo.forwarding = 1
  11. net.ipv4.conf.venet0.forwarding = 1
  12. net.ipv6.conf.all.forwarding = 1
  13. net.ipv6.conf.default.forwarding = 1
  14. net.ipv6.conf.lo.forwarding = 1
  15. net.ipv6.conf.venet0.forwarding = 1
  16.  
  17.  
  18. root@cvps174924115500:~# iptables -t mangle -I INPUT -i venet0 -j CONNMARK --set -mark 0x5
  19. root@cvps174924115500:~# iptables -t mangle -I OUTPUT -j CONNMARK --restore-mark
  20. root@cvps174924115500:~# iptables -t nat -I POSTROUTING -m addrtype --src-type LOCAL -j MASQUERADE
  21.  
  22.  
captcha