OpenVZ Forum


Home » General » Support » Do yo firewall your HN and VE
Do yo firewall your HN and VE [message #31062] Tue, 17 June 2008 01:31 Go to next message
dannygoh is currently offline  dannygoh
Messages: 1
Registered: June 2008
Junior Member
Hello,

When apf started on HN, and i lost the connectivity of port 80 on VE.

How do I fix the problem?
Re: Do yo firewall your HN and VE [message #31076 is a reply to message #31062] Tue, 17 June 2008 16:05 Go to previous message
marcel.chastain is currently offline  marcel.chastain
Messages: 3
Registered: June 2008
Location: Los Angeles, Ca
Junior Member
There are 3 main ways that a packet can be filtered in iptables -
INPUT
OUTPUT
FORWARD

  • The INPUT chain is traffic from the external internet to the Hardware Node
  • The OUTPUT chain is traffic from the Hardware Node to the external internet
  • The FORWARD chain is all traffic TO and FROM the jails, and is the only way to filter stuff.


Your APF is probably misconfigured to DROP EVERYTHING on the FORWARD chain, which is common for normal servers (because they aren't forwarding network traffic).

run this to see your currently active rules
iptables-save | less


It should print out your current rules, and check for the default policy at the top, something like this:
:INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]   # <---- Right there
:OUTPUT ACCEPT [0:0]


You can change it to 'ACCEPT', or create rules on the FORWARD chain to allow/disallow all the traffic you want. Might be difficult with APF.

Hope this helps.
Previous Topic: Iptables in HN or VE?
Next Topic: undump failed: Invalid argument
Goto Forum:
  


Current Time: Tue Jul 29 10:01:24 GMT 2025

Total time taken to generate the page: 0.26071 seconds