iptables and outgoing connections
scenario: I can ping my machine but I cant ping from that machine to other hosts.
I accept icmp and the output chain is default accept Output of iptables -vL http://pastebin.com/m58335897 It is fixed when i set the default for input to accept, so i guess im missing something i should accept. I cant figure out what im doing wrong, could somebody give me a hint? It seems to be the same for other outgoing connections so it might not be specific for icmp |
What happens if you remove the protocol match from your RELATED,ESTABLISHED rule?
|
Quote:
edit: wait, i misunderstood, let me test that |
Quote:
|
Quote:
Code:
Chain INPUT (policy DROP 270 packets, 31057 bytes) |
Okay, after doing some tests on my box (and re-reading your configuration), I'm willing to bet that although you weren't able to ping by host name, you were able to ping by IP. Can you confirm this?
I suspect that this was simply a case of the DNS lookups not being able to take place, due to their being no way for the returning UDP packets to be allowed. In other words, I theorize that you weren't receiving echo replies at all, because your echo requests weren't being sent in the first place. If I'm correct, then what happened when you removed the TCP match from your RELATED,ESTABLISHED rule was that you allowed DNS lookups to complete. |
You are correct. I should have realised this, because ping gave no output at all.
On to the next problem, with these rules ftp doesn't work yet :) If you have any suggestions, they are welcome. I am going to wait a bit with debugging till tonight, it's on a production server (don't ask). |
You have the FTP connection tracking module loaded, right?
|
Quote:
|
All times are GMT -5. The time now is 12:00 AM. |