Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

IPTables not forwarding from public to private subnet.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2007, 08:47 PM
Default IPTables not forwarding from public to private subnet.



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



techjohnny@gmail.com
Reply With Quote
  #2  
Old 09-28-2007, 07:37 PM
Tauno Voipio
Guest
 
Posts: n/a
Default Re: IPTables not forwarding from public to private subnet.

(E-Mail Removed) 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
Reply With Quote
  #3  
Old 09-28-2007, 11:57 PM
techjohnny@gmail.com
Guest
 
Posts: n/a
Default Re: IPTables not forwarding from public to private subnet.

On Sep 28, 11:37 am, Tauno Voipio <tauno.voi...@INVALIDiki.fi> wrote:
> techjoh...@gmail.com 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


Yup.

Reply With Quote
Reply

Tags
forwarding, iptables, private, public, subnet

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.