View previous topic :: View next topic |
Author |
Message |
gondolin Apprentice
Joined: 09 Apr 2003 Posts: 158
|
Posted: Thu Apr 10, 2003 6:44 pm Post subject: Iptables |
|
|
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 |
|
|
SeJo Retired Dev
Joined: 08 Oct 2002 Posts: 298 Location: Belgium
|
Posted: Fri Apr 11, 2003 5:42 am Post subject: |
|
|
poort 25 voor mail? |
|
Back to top |
|
|
gondolin Apprentice
Joined: 09 Apr 2003 Posts: 158
|
Posted: Fri Apr 11, 2003 4:26 pm Post subject: |
|
|
ik had source port vergeten. |
|
Back to top |
|
|
JefP@@ Apprentice
Joined: 09 May 2002 Posts: 179 Location: Belgium
|
Posted: Sun Apr 13, 2003 2:47 pm Post subject: |
|
|
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 |
|
|
gondolin Apprentice
Joined: 09 Apr 2003 Posts: 158
|
Posted: Mon Apr 14, 2003 4:16 pm Post subject: |
|
|
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 |
|
|
|