Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IPTables outgoing firewall rules

Status
Not open for further replies.

fzx5v0

IS-IT--Management
Jan 13, 2003
79
GB
Hi
In IPTables I am geting drops for traffic leaving my server but it did not initiate the traffic. if i put in a rule letting the outgoing traffic all works well

e.g.
If i have a rule that allows me to conect to the server lo the conection fails as I do not have an outbound rule to lo

I thought aslong as source traffic was aloud through the firewall to the server then the firwall would alow the server to comunicate back to the initiator?

Is this not the case with iptables or is thier another setting for this

thanks
 
I do not know exactly what you are looking.. If you do not mind, let me know what you are trying accomplished and you current iptables output (iptables -L -vn)

To accept all established connection :
For input : iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
For output : iptables -A OUTPUT -m state -state ESTABLISHED,RELATED -j ACCEPT

Hope that helps.

Learning is not enough, you have to apply it...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top