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

 
Reply to topic    Gentoo Forums Forum Index Dutch
View previous topic :: View next topic  
Author Message
gondolin
Apprentice
Apprentice


Joined: 09 Apr 2003
Posts: 158

PostPosted: Thu Apr 10, 2003 6:44 pm    Post subject: Iptables Reply with quote

Hoi,
Ik ben voor de eerste keer met IPtables aan het spelen, onderstaand zou volgens mij moeten werken maar ik kan m'n mail niet ophalen.
De reden waarop ik geen netwerkkaart meegeef is dat in veel wissel tusen ingebouwd ehternet en wireless.
Code:
iptables --policy INPUT DROP
iptables --policy OUTPUT DROP
iptables -A OUTPUT -p udp --destination-port 53 -j ACCEPT
iptables -A INPUT -p udp --destination-port 53 -j ACCEPT
iptables -A INPUT -p TCP --destination-port 110 -j ACCEPT
iptables -A OUTPUT -p TCP --destination-port 110 -j ACCEPT
iptables -A OUTPUT -p TCP --destination-port 80 -j ACCEPT
iptables -A OUTPUT -p TCP --destination-port 21 -j ACCEPT
iptables -A INTPUT -p TCP --destination-port 8080 -j ACCEPT
iptables -A OUTPUT -p TCP --destination-port 8080 -j ACCEPT
iptables --table filter  -A INPUT  --source 127.0.0.1  -i lo  -j ACCEPT
iptables --table filter  -A OUTPUT  --destination 127.0.0.1  -o lo  -j ACCEPT



goede raad is welkom
Patrick
Back to top
View user's profile Send private message
SeJo
Retired Dev
Retired Dev


Joined: 08 Oct 2002
Posts: 298
Location: Belgium

PostPosted: Fri Apr 11, 2003 5:42 am    Post subject: Reply with quote

poort 25 voor mail?
Back to top
View user's profile Send private message
gondolin
Apprentice
Apprentice


Joined: 09 Apr 2003
Posts: 158

PostPosted: Fri Apr 11, 2003 4:26 pm    Post subject: Reply with quote

ik had source port vergeten.
Back to top
View user's profile Send private message
JefP@@
Apprentice
Apprentice


Joined: 09 May 2002
Posts: 179
Location: Belgium

PostPosted: Sun Apr 13, 2003 2:47 pm    Post subject: Reply with quote

volgens mij moet je alleen sourceport 110 in INPUT hebben openstaan, maar niets in OUTPUT

waarom zou je trouwens filteren op output? meestal wil je dat alles van jouw pc wel naar buiten kan, niet ? Of speel je grote firewall ofzo?
Back to top
View user's profile Send private message
gondolin
Apprentice
Apprentice


Joined: 09 Apr 2003
Posts: 158

PostPosted: Mon Apr 14, 2003 4:16 pm    Post subject: Reply with quote

inderdaad, zoals ik al zei dit dis de eerste ker met iptables.
Ik heb bijna alles werkende maar ftp naam m'n toestel lukt niet emerge via een ftp server, volgens ethereal komt de eerste source connectie binnen op port 21 en gaat dan over naar een source port van vijfduizend en nog iets, dir lijkt mij niet normaal?

Patrick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Dutch 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