Re: IPTables not forwarding from public to private subnet.



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


Did you remember to enable IP forwarding?

--

Tauno Voipio
tauno voipio (at) iki fi
.



Relevant Pages

  • Re: IPTables Prerouting
    ... internal subnet, but it's not relaying. ... I can access the Internet and the Linux router from the Linux machine. ... I'm using the iptables command: ...
    (comp.os.linux.security)
  • RH Network setup RH 7.1
    ... I just got DSL and am seting up the DSL with my main computer on Windows ... My RH 7.1 Linux machine was installed when I was on a network at work. ... When I login to the router ...
    (alt.os.linux.redhat)
  • Re: can not connect to internet via my linksys router on fedora linux desktop
    ... i have a linksys router at my home. ... to an internet cable modem. ... i also set up a ftp server on my linux machine and my windows laptop ... If your gateway isn't setup, you will not see the "default" entry ...
    (comp.os.linux.networking)
  • Re: routers vs switches: how do I convince my Linux box that its a switch?
    ... > I understand how to make my Linux machine a router. ... > to make it a switch. ... Don't understand why using the middle machine as a router is not ... addresses and layer 2, bridges are considered more transparent -- ie., ...
    (comp.os.linux.networking)
  • can not connect to internet via my linksys router on fedora linux desktop
    ... i have a linksys router at my home. ... to an internet cable modem. ... all my windows mahcines can connect to ... i also set up a ftp server on my linux machine and my windows laptop ...
    (comp.os.linux.networking)