Linux-VServer pastebin service

Posted by Anonymous on Fri 7th Jul 08:08 (modification of post by zob000 view diff)
diff | download | new post

  1. guest1
  2. iptables -A INPUT -p tcp -s 0/0 -d a.b.c.35 --dport 22 --syn -j ACCEPT
  3. iptables -t nat -A POSTROUTING -s 192.168.35.0/24 -o eth0 -j SNAT --to-source a.b.c.35
  4. iptables -A INPUT -p tcp -s 0/0 -d a.b.c.35 --dport 80 --syn -j ACCEPT
  5. iptables -A INPUT -p tcp -s 0/0 -d a.b.c.35 --dport 443 --syn -j ACCEPT
  6. iptables -A INPUT -p udp -s 0/0 -d a.b.c.35 --dport 1812  -j ACCEPT
  7. iptables -A INPUT -p udp -s 0/0 -d a.b.c.35 --dport 1813  -j ACCEPT
  8. iptables -A INPUT -p udp -s 0/0 -d a.b.c.35 --dport 1814  -j ACCEPT
  9. guest2
  10. iptables -A INPUT -p tcp -s 0/0 -d a.b.c.35 --dport 2222 --syn -j ACCEPT
  11. iptables -t nat -A PREROUTING -d a.b.c.35 -i eth0 -p tcp --dport 2222 -j DNAT --to ${guest_ip}:22

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
Your Name

Remember my name in a cookie