From: "Frederic SOSSON" <fred_sos@swing.be>
To: netfilter@lists.netfilter.org
Subject: [newbie]
Date: Sun, 9 Mar 2003 11:53:54 +0100 [thread overview]
Message-ID: <006901c2e62a$2d4ef780$3200a8c0@xp1700> (raw)
Hi all,
I'm juste a newbie in iptables ;) My problem is, i have a linux box routing my DSL
connection, i set these rules:
iptables -A FORWARD -i ppp0 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o ppp0 -j ACCEPT
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -j LOG --log-prefix "Firewall: "
== Great, i have acces to thet NET ! ==
I have also a machine (192.168.0.50) in my local network running an FTP client this
one runing an identd daemon (port 113) to access to an FTP server on the internet, i
have added this rule
iptables -t nat -A PREROUTING -p tcp --dport 113 -i ppp0 -j DNAT --to
192.168.0.50:113
But my FTP client tels me:
[11:51:58] PORT 192,168,0,50,13,161
[11:51:58] 200 PORT command successful.
[11:51:58] LIST
[11:52:02] 425 Can't build data connection: No route to host.
Any help would be appreciate ;)
Frederic
next reply other threads:[~2003-03-09 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-09 10:53 Frederic SOSSON [this message]
2003-03-09 21:50 ` [newbie] Alistair Tonner
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='006901c2e62a$2d4ef780$3200a8c0@xp1700' \
--to=fred_sos@swing.be \
--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