OpenVZ Forum


Home » General » Support » *SOLVED* OpenVZ and Bastille/iptables?
Re: OpenVZ and Bastille/iptables? [message #9273 is a reply to message #9271] Sun, 24 December 2006 15:18 Go to previous message
marsvin is currently offline  marsvin
Messages: 8
Registered: December 2006
Junior Member
I just tried messing around with it some more and now it works! It turned out simply adding forward/accept rules to each of the VPS was necessary. Thanks a lot for keeping me on track guys.

For anyone else reading this and looking for the same thing, I created this file: /etc/Bastille/firewall.d/post-rule-setup.sh (in VE0) and added these lines:

iptables -A FORWARD -p tcp -d 10.0.0.101 --dport 22 --syn -j ACCEPT
iptables -A FORWARD -s 10.0.0.101 -j ACCEPT


This is accepting all outbound connections from my VPS and inbound for ssh. Very nice Very Happy

-- marsvin

[Updated on: Sun, 24 December 2006 15:44]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Cloning VE from AMD Athlon 64 to othe HW node
Next Topic: negative vm_rss (again?)
Goto Forum:
  


Current Time: Sat Jun 28 07:59:28 GMT 2025

Total time taken to generate the page: 0.02106 seconds