From: Alejandro Flores <alejandro.flores@triforsec.com.br>
To: tom@digital-data.co.uk
Cc: netfilter@lists.netfilter.org
Subject: Re: Very basic question.
Date: Fri, 24 Sep 2004 10:08:46 -0300 [thread overview]
Message-ID: <1096031326.12880.6.camel@aflores> (raw)
In-Reply-To: <1096028483.12880.0.camel@aflores>
Hello,
> I have tried the following, but it just seems to redirect all traffic to the
> local firewall:
> iptables -t nat -A POSTROUTING -o eth1 -s 192.168.10.2 -j SNAT --to
> 213.249.230.206
1. -o = output interface. Your local network is connected to eth1,
wright? And you want to NAT all connections from 192.168.10.2 to
internet as 213.249.230.206, wright?
iptables -t nat -A POSTROUTING -o eth2 -s 192.168.10.2/32 -j SNAT
--to-source 213.249.230.206
> iptables -t nat -A PREROUTING -i eth2 -s 213.249.230.206 -j DNAT --to
> 192.168.10.2
2. -s = source. You want redirect the traffic that comes from the
internet which destination is 213.249.230.206 to your internal pc
192.168.10.2, wright?
iptables -t nat -A PREROUTING -i eth2 -d 213.249.230.206 -j DNAT
--to-destination 192.168.10.2
Regards,
--
--
Alejandro Flores
http://www.triforsec.com.br/
http://www.defenselayer.com/
next parent reply other threads:[~2004-09-24 13:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1096028483.12880.0.camel@aflores>
2004-09-24 13:08 ` Alejandro Flores [this message]
[not found] <20040924102247.3335375B@smtp-01.piensasolutions.com>
2004-09-26 20:34 ` Very basic question Jose Maria Lopez
2004-09-24 11:09 Eric Leblond
-- strict thread matches above, loose matches on Subject: below --
2004-09-24 10:28 coding
2004-09-24 10:26 tom
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=1096031326.12880.6.camel@aflores \
--to=alejandro.flores@triforsec.com.br \
--cc=netfilter@lists.netfilter.org \
--cc=tom@digital-data.co.uk \
/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