Re: IPTables Prerouting
- From: "techjohnny@xxxxxxxxx" <techjohnny@xxxxxxxxx>
- Date: Thu, 04 Oct 2007 13:10:58 -0700
On Oct 2, 8:27 pm, buck <b...@xxxxxxxxxxx> wrote:
On Tue, 02 Oct 2007 13:18:43 -0700, "techjoh...@xxxxxxxxx"
<techjoh...@xxxxxxxxx> wrote:
I'm trying to use IPTables nat forwarding from public ip address to
internal subnet, but it's not relaying.
Public Ip address
207.202.xxx.xxx -> 10.0.0.100 (Linux router) -> 10.1.10.15 (Linux
machine.)
I can access the linux machine from 10.0.0.100's router.
I can access the Internet and the Linux router from the Linux machine.
I'm using the iptables command:
iptables -t nat -A PREROUTING -p tcp --dport 26 -j DNAT --to
10.1.10.15:26
I'm even disabled all of the DENY rules for forwarding.
--TJ
This works for me, so it will work for you. But I have to wonder what
is on port 26...
iptables -t nat -I PREROUTING -p tcp -d 207.202.x.y --dport 26 \
-j DNAT --to10.1.10.15:26
iptables -I FORWARD -p tcp -d 10.1.10.15 ---dport 26 -j ACCEPT
Since there is no defined service on TCP 26, you might not see
anything happen, but the iptables lines above are correct.
--
buck- Hide quoted text -
- Show quoted text -
Thanks for the response, but had to create an access-list and forward
a port from the PIX first.
--JP
.
- References:
- IPTables Prerouting
- From: techjohnny@xxxxxxxxx
- Re: IPTables Prerouting
- From: buck
- IPTables Prerouting
- Prev by Date: Re: User access & security
- Next by Date: Re: Phishing Attempt
- Previous by thread: Re: IPTables Prerouting
- Index(es):
Relevant Pages
|