From: "Stanislav Puffler DiS." <stanislav.puffler@seznam.cz>
To: netfilter@lists.netfilter.org
Subject: RE: ping to internet hosta through NameServer of provider
Date: Tue, 9 Mar 2004 14:00:15 +0100 [thread overview]
Message-ID: <E1B0gpe-0004V7-9P@vishnu.netfilter.org> (raw)
In-Reply-To: <200403091040.28256.Antony@Soft-Solutions.co.uk>
It seems like anything you´ve described. Here is the ruleset :
iptables -L -nv
Chain INPUT (policy ACCEPT 66 packets, 2754 bytes)
pkts bytes target prot opt in out source
destination
1332 179K RH-Lokkit-0-50-INPUT all -- * * 0.0.0.0/0
0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
Chain OUTPUT (policy ACCEPT 85 packets, 5151 bytes)
pkts bytes target prot opt in out source
destination
Chain RH-Lokkit-0-50-INPUT (1 references)
pkts bytes target prot opt in out source
destination
0 0 ACCEPT udp -- * * 80.95.96.7
0.0.0.0/0 udp spt:53 dpts:1025:65535
10 700 ACCEPT all -- lo * 0.0.0.0/0
0.0.0.0/0
0 0 ACCEPT udp -- * * 192.168.0.11
0.0.0.0/0 udp spt:53
0 0 REJECT tcp -- * * 0.0.0.0/0
0.0.0.0/0 tcp flags:0x16/0x02 reject-with icmp-port-unreachable
1256 175K REJECT udp -- * * 0.0.0.0/0
0.0.0.0/0 udp reject-with icmp-port-unreachable
iptables -L -t nat -nv
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
As for tutorials - I have read some czech one, I´ll read those from
netfilter.org too of course... Thanks in advance,
Stanley.
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org] On Behalf Of Antony Stone
Sent: Tuesday, March 09, 2004 11:40 AM
To: netfilter@lists.netfilter.org
Subject: Re: ping to internet hosts through NameServer of provider
On Tuesday 09 March 2004 9:29 am, Stanislav Puffler DiS. wrote:
> Hi all,
> i´m newbie to fw, have just installed iptables and configured. Have 3
> interfaces, eth0 - internet, eth1 - DMZ (squid, postfix), eth2 - LAN. My
> provider has connected my firewall to the Internet via 1 public IP (on
> eth0). Internet hosts are resolved via provider´s Name Server (this IP
> is in /etc/resolv.conf). If I tried ping to (for example) www.rb.cz
> before installing iptables, there was no problem. Now, after installing
> iptables, I can´t ping to internet hosts correctly (only on IP - it is
> without need of contacting providers NS) - it is working like this :
>
> [user@machine]$ ping www.rb.cz
> IN=eth0 OUT= MAC=.............. SRC="my_providers_nameserver_ip"
> DST="ip_on_my_eth0" LEN=127 TOS=0x00 PREC=0x00 TTL=61 ID=3268 DF
> PROTO=UDP SPT=53 DPT=32792 LEN=107
So you have a LOGging rule (presumably some time before a DROP rule - not
many
people LOG ACCEPTed packets), which shows that you are blocking DNS replies
from your ISP. Hence you cannot resolve IP addresses.
> Ping to resolved IP of www.rb.cz is no problem (ping 193.86.103.40 -
> returns a normal replay). Could anyone help me please how to set up
> carefully and secure rule to maintain this problem - to permit my
> provider´s NS to resolv internet hosts ?
Please tell us your ruleset (either the iptables commands you use to set up
the rules, or the output of "iptables -L -nv; iptables -L -t nat -nv") and
we
can suggest what might be wrong.
If you are new to networking as well as netfilter, please read one of the
excellent tutorials accessible from http://www.netfilter.org and this will
help you get a basic setup working. I can recommend Oskar Andreasson's
tutorial at http://iptables-tutorial.frozentux.net
Regards,
Antony.
--
Most people are aware that the Universe is big.
- Paul Davies, Professor of Theoretical Physics
Please reply to the
list;
please don't CC
me.
next prev parent reply other threads:[~2004-03-09 13:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-09 9:29 ping to internet hosts through NameServer of provider Stanislav Puffler DiS.
2004-03-09 10:40 ` Antony Stone
2004-03-09 13:00 ` Stanislav Puffler DiS. [this message]
2004-03-09 13:22 ` ping to internet hosta " Antony Stone
2004-03-10 10:22 ` Stanislav Puffler DiS.
2004-03-10 10:41 ` Antony Stone
2004-03-10 11:02 ` Stanislav Puffler DiS.
2004-03-11 7:57 ` Stanislav Puffler DiS.
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=E1B0gpe-0004V7-9P@vishnu.netfilter.org \
--to=stanislav.puffler@seznam.cz \
--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