iptables blocking DNS resolution, web browsing, ftp...etc.
- From: "Noozer" <dont.spam@xxxxxxx>
- Date: Mon, 15 Oct 2007 07:01:57 GMT
I'm trying to secure my Debian etch 4.0r1 machine. I've built some rules for
iptables, but I think that they are blocking responses from the servers I am
connecting to. For example, if I do a lookup on google.ca the request is
sent by my PC, but the reply comes in on a port that IPTABLES isn't
allowing. How do I let these responses through?
I can connect to SSH on this PC from another PC on my LAN, so I know that
the interfaces are working.
My IPTABLES rules, according to WebMin:
# INPUT
Accept If protocol is ICMP and ICMP type is echo-request
Accept If protocol is TCP and input interface is eth2 and destination port
is 22
Accept If protocol is UDP and input interface is eth2 and destination port
is 22
Accept If protocol is TCP and input interface is eth2 and destination port
is 20:21
Accept If protocol is TCP and input interface is eth2 and source port is
14400:14499
Drop If input interface is eth2
#eth1 is behind a router, so SMB shares are NOT public.
Accept If protocol is TCP and input interface is eth1 and destination port
is 22
Accept If protocol is UDP and input interface is eth1 and destination port
is 22
Accept If protocol is TCP and source is 10.0.11.0/24 and input interface is
eth1 and destination port is 139
Accept If protocol is UDP and source is 10.0.11.0/24 and input interface is
eth1 and destination port is 139
Accept If protocol is TCP and source is 10.0.11.0/24 and input interface is
eth1 and destination port is 445
Accept If protocol is UDP and source is 10.0.11.0/24 and input interface is
eth1 and destination port is 445
Accept If protocol is TCP and input interface is eth1 and destination port
is 55555
Drop If input interface is eth1
Accept If protocol is UDP and input interface is eth0 and destination port
is 18800:18899
Accept If protocol is TCP and input interface is eth0 and destination port
is 18800:18899
Accept If protocol is TCP and input interface is eth0 and destination port
is 6881:6999
Accept If protocol is TCP and input interface is eth0 and destination port
is 12321
Accept If protocol is UDP and input interface is eth0 and destination port
is 12321
Drop If input interface is eth0
# OUTPUT
Default = Accept
# FORWARDED
Default = Accept
.
- Prev by Date: Re: Feisty -> Gusty, wait a month or two
- Next by Date: Best distro for older dual Xeon SCSI
- Previous by thread: Feisty -> Gusty, wait a month or two
- Next by thread: Best distro for older dual Xeon SCSI
- Index(es):
Relevant Pages
|