Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pump on tcp 68
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
joycea
Apprentice
Apprentice


Joined: 23 Jul 2002
Posts: 191
Location: Kingston, Canada

PostPosted: Wed Sep 22, 2004 4:31 pm    Post subject: pump on tcp 68 Reply with quote

I am just trying to configure a firewall. I was wondering if there is a reason to allow pump to listen to TCP port 68? Do I need to do this for DHCP or why is it there? I could see it wanting to listen on UDP 68, but TCP 68 seems weird to me.
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Wed Sep 22, 2004 7:09 pm    Post subject: Reply with quote

Nope, no need to listen on tcp 68. Port numbers are often reserved on both tcp and udp with no real reason other than to minimize confusion. In fact, if you are solely a dhcp client, you can safely close off udp 68 as well -- provided you utilize the iptables state system and allow established and related connections. Since the dhcp client broadcasts the original dhcp request, replies are considered related and are allowed through.

Assuming that you allow any output, you can use this rule to allow a dhcp client to work:

Code:
iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
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