Re: IPTables Prerouting
- From: buck <buck@xxxxxxxxxxx>
- Date: Tue, 02 Oct 2007 20:27:21 -0700
On Tue, 02 Oct 2007 13:18:43 -0700, "techjohnny@xxxxxxxxx"
<techjohnny@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
.
- Follow-Ups:
- Re: IPTables Prerouting
- From: techjohnny@xxxxxxxxx
- Re: IPTables Prerouting
- References:
- IPTables Prerouting
- From: techjohnny@xxxxxxxxx
- IPTables Prerouting
- Prev by Date: Re: Phishing Attempt
- Next by Date: Re: User access & security
- Previous by thread: IPTables Prerouting
- Next by thread: Re: IPTables Prerouting
- Index(es):
Relevant Pages
|