about iptables
- From: "ParTizan" <ParTizanPuPkin@xxxxxxxxx>
- Date: 27 Apr 2006 15:45:54 -0700
Hi All,
I guess, this is a simple question, but I couldn't find an answer in
internet.
my setup:
dsl modem <---> linksys router+dhcp (192.168.1.1) <---> linux box (1
nic)
dhcp 192.168.1.1
dns1 71.0.0.1
dns1 151.0.0.2
iptables rules:
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -i eth0 -p udp -s 71.0.0.1 --sport domain -m state
--state ESTABLISHED -j ACCEPT
iptables -A INPUT -i eth0 -p udp -s 151.0.0.2 --sport domain -m state
--state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -o eth0 -p udp -d 71.0.0.1 --dport domain -m state
--state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -o eth0 -p udp -d 151.0.0.2 --dport domain -m state
--state NEW,ESTABLISHED -j ACCEPT
what else do I need to add to be able to browse internet from linux
box?
when I try lynx yahoo.com - it says "making http connection to
yahoo.com" and then nothing.
thanks.
.
- Follow-Ups:
- Re: about iptables
- From: Grant
- Re: about iptables
- Prev by Date: mms:// through PROXY -- MPlayer
- Next by Date: Re: about iptables
- Previous by thread: mms:// through PROXY -- MPlayer
- Next by thread: Re: about iptables
- Index(es):
Relevant Pages
|