Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
first go at iptables (a few questions) [SOLVED]
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
pixie
Guru
Guru


Joined: 29 Dec 2002
Posts: 305

PostPosted: Sat Feb 14, 2004 3:36 pm    Post subject: first go at iptables (a few questions) [SOLVED] Reply with quote

iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A INPUT -p tcp --dport 113 -j REJECT
iptables -A FORWARD -p tcp --dport 113 -j REJECT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p icmp -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT

Have I made a really huge fuckup in this anywhere? Anything I should add It's for my workstations. The intention is I just do online things with them but I can ping or ssh into them from anywhere.

I am not sure if I will have to specifically ACCEPT on bitorrent ports though. Would that come under ESTABLISHED,RELATED or do I need to accept TCP on them?


Last edited by pixie on Sat Feb 14, 2004 11:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
pixie
Guru
Guru


Joined: 29 Dec 2002
Posts: 305

PostPosted: Sat Feb 14, 2004 3:49 pm    Post subject: Reply with quote

alright.... got a problem.

NFS is taking a stupid amount of time to start at boot*. Any NFS specfic things I should do to iptables?

*[edit] took about 20 minutes to boot. but me nfs mount IS mounted.
Back to top
View user's profile Send private message
triwebb1
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2003
Posts: 87

PostPosted: Sat Feb 14, 2004 8:37 pm    Post subject: Reply with quote

I don't see any problems with that, but why are you rejecting port 113? The default policy is to drop it anyway, so you don't need that rule.

Regarding NFS........ I don't know much of anything about it. You should do a little research to find out if it uses TCP or UDP (I think it does). If it does, then it will use a certain port, and that means you should allow that port in iptables. If it does use TCP/UDP, then I don't know how it is booting now, unless it is booting from a local file or something.........

Hope this helps :)
Back to top
View user's profile Send private message
pixie
Guru
Guru


Joined: 29 Dec 2002
Posts: 305

PostPosted: Sat Feb 14, 2004 8:41 pm    Post subject: Reply with quote

Yeah, those ones are gone now. I must have picked them up somewhere when I was looking around before it twigged exactly what I was doing. Possibly got left over from my first try.

I don't get the NFS problems I have with the firewall up at al.
Back to top
View user's profile Send private message
pixie
Guru
Guru


Joined: 29 Dec 2002
Posts: 305

PostPosted: Sat Feb 14, 2004 11:49 pm    Post subject: Reply with quote

and award for idiot of the months goes to.......

ME

I forgot to allow INPUT from localhost.

:oops:
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