From: "it clown" <suse@mailbox.co.za>
To: netfilter@lists.netfilter.org
Subject: Re: bind 9 and iptables
Date: Sat, 28 Aug 2004 02:00:43 +0200 [thread overview]
Message-ID: <web-420609378@mail01.infosat.net> (raw)
In-Reply-To: <D5C9032B2B09C64EA2409D6214E91AC906420E@asimail2.alphanumeric.com>
Hi
It seems i got it working.
iptables -A OUTPUT -p tcp -o ppp0 --dport 53 -j ACCEPT
iptables -A OUTPUT -p udp -o ppp0 --dport 53 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j
ACCEPT
Thanks for all the help and not fading away.
Regards
On Fri, 27 Aug 2004 19:34:26 -0400
"Jason Opperisano" <Jopperisano@alphanumeric.com> wrote:
> > Hi Again,
> >
> > Damn it still not working why i said it was working was
> was
> > because of cached ip's as soon as i tried to access a
> site
> > that hasn't been cached it would give me a unknown host
> > error.
> >
> > iptables -P INPUT DROP
> > iptables -P OUTPUT DROP
> > iptables -P FORWARD DROP
> >
> > iptables -A INPUT -p udp -i eth0 -s 192.168.0/24 -d
> > 192.168.0.1 --dport 53 -j ACCEPT
> > iptables -A INPUT -p tcp -i eth0 -s 192.168.0/24 -d
> > 192.168.0.1 --dport 53 -j ACCEPT
> > iptables -I OUTPUT -m state --state ESTABLISHED,RELATED
> -j
> > ACCEPT
> >
> > iptables -I INPUT -i lo -j ACCEPT
> > iptables -I OUTPUT -o lo -j ACCEPT
> >
> > iptables -A FORWARD -i eth0 -o ppp0 -p tcp -j ACCEPT
> > iptables -A FORWARD -i eth0 -o ppp0 -p udp -j ACCEPT
> > iptables -A FORWARD -m state --state
> ESTABLISHED,RELATED -j
> > ACCEPT
> >
> > iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
> >
> > Thats my rules im trying to get dns to work atm.
> >
> > When i comment these out everything works fine:
> >
> > #iptables -P INPUT DROP
> > #iptables -P OUTPUT DROP
>
> somewhere along the line, you lost:
>
> iptables -I INPUT -m state --state ESTABLISHED,RELATED
> -j ACCEPT
>
> -j
>
> ps - in the future, it's easier to help if you provide
> the output of:
> iptables -vnL && iptables -t nat -vnL && iptables -t
> mangle -vnL
_____________________________________________________________________
For super low premiums ,click here http://www.dialdirect.co.za/quote
next prev parent reply other threads:[~2004-08-28 0:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-27 23:34 bind 9 and iptables Jason Opperisano
2004-08-28 0:00 ` it clown [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-08-30 19:08 Jason Opperisano
2004-08-27 23:40 Daniel Chemko
[not found] <D5C9032B2B09C64EA2409D6214E91AC90512F9@asimail2.alphanumeric.co m>
2004-08-27 23:32 ` it clown
[not found] ` <D5C9032B2B09C64EA2409D6214E91AC90512F9@asimail2.alphanumeric.com>
2004-08-28 0:47 ` Nick Drage
2004-08-28 1:58 ` Jose Maria Lopez
2004-08-28 4:40 ` dchemko
2004-08-27 21:19 Jason Opperisano
2004-08-27 21:00 Jason Opperisano
2004-08-27 20:16 Jason Opperisano
2004-08-27 21:10 ` it clown
2004-08-27 20:06 it clown
2004-08-27 20:19 ` Nick Taylor
2004-08-27 20:53 ` it clown
2004-08-27 21:02 ` Nick Taylor
2004-08-27 20:37 ` Aleksandar Milivojevic
2004-08-28 0:44 ` Nick Drage
2004-08-28 5:02 ` Aleksandar Milivojevic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=web-420609378@mail01.infosat.net \
--to=suse@mailbox.co.za \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox