Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Iptables with emerge support
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
David Jimenez
n00b
n00b


Joined: 03 Jul 2004
Posts: 1

PostPosted: Sat Jul 03, 2004 5:40 am    Post subject: Iptables with emerge support Reply with quote

Hi !!!

I have gentoo with a kernel 2.4.25, my iptables rules are:

-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m multiport --dports 80,22,25 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-port-unreachable

But when I use emerge to download something, I have to disable iptables, to continue, so How could I write a rule for emerge????
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Jul 03, 2004 5:47 am    Post subject: Reply with quote

maybe state matching will help.

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum