Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables in gentoo
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
mzet
n00b
n00b


Joined: 26 May 2005
Posts: 41
Location: Poland

PostPosted: Sat Feb 04, 2006 4:32 pm    Post subject: iptables in gentoo Reply with quote

I found in /etc/init.d/net that iptables is started before net (before net in depends function), but is this true? I'm using dhcpcd and after checking it's logs I found that dhcpcd has connected with dhcp server even though in my iptables rules i'm blocking incomming broadcast traffic.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Sat Feb 04, 2006 5:41 pm    Post subject: Reply with quote

The traffic from the DHCP will be unicast, surely.
Back to top
View user's profile Send private message
mzet
n00b
n00b


Joined: 26 May 2005
Posts: 41
Location: Poland

PostPosted: Sun Feb 05, 2006 12:22 pm    Post subject: Reply with quote

Yeah, You are right it's unicast, only boot state is broadcast (DHCPDISCOVER and DHCPOFFER). My mistake. But even when I'm blocking all the incoming traffic dhcpcd successfully comunicates with dhcp server. Conclusion: firewall doesn't work when it happens.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Sun Feb 05, 2006 12:35 pm    Post subject: Reply with quote

When you say blocking all incoming traffic, do you mean ALL? You don't have an accept related, established rule that would let the packets through?
Back to top
View user's profile Send private message
mzet
n00b
n00b


Joined: 26 May 2005
Posts: 41
Location: Poland

PostPosted: Mon Feb 06, 2006 2:56 pm    Post subject: Reply with quote

Yup, for testing purposes I commented out all my input rules and set policy to drop.
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1285

PostPosted: Mon Feb 06, 2006 3:09 pm    Post subject: Reply with quote

mzet wrote:
Yup, for testing purposes I commented out all my input rules and set policy to drop.


Did you restart iptables after making these changes?

Allen
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