HN iptables blocking http access [message #13516] |
Tue, 29 May 2007 07:08 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
lurnux
Messages: 3 Registered: May 2007
|
Junior Member |
|
|
Hi,
I've just started using openvz and I'm stuck with HN iptables.
I've installed Centos4 HN according instructions found in wiki.
Now everything works great except http access from every VN, when I try to go to google.com with links or use any kind of http access to anywhere i'll get only "No route to host". After some digging around i found that the requests are stuck in HN iptables rule.
Tcpdump shows:
09:59:05.748720 IP HN > VN: icmp 68: host eh-in-f99.google.com unreachable - admin prohibited
09:59:08.748990 IP VN > eh-in-f99.google.com.http: S 2235774822:2235774822(0) win 5840 <mss 1460,sackOK,timestamp 392992619 0,nop,wscale 2>
In iptables those requests are stuck with the last rule:
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
and I don't know what I should allow to get this one working.
[Updated on: Tue, 29 May 2007 09:24] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: HN iptables blocking http acces [message #13653 is a reply to message #13530] |
Fri, 01 June 2007 07:31 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
yes, agreed. This is how almost every firewall config works. allow a,b,c and disallow d-z. However, if the admin doesn't know what a,b,c are, its not going to work.
so, your question is more of a business logic one, and that is, what services do you want to offer with your vps? Once you know that, create a list of the ports and protocls they use (smtp- 25tcp, dns 53tcp/udp, etc) and create allow rules to pass them through. then, add your reject rule at the end.
bottom line, when you add your reject rule without and allow rules, its like unplugging the network cable. this isn't specific to openvz, its just basic firewall theory.
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
|
|
|