Networking Forums

Networking Forums > Computer Networking > Linux Networking > Iptables: How do I forwarding public IPs into a router inside a privateIP network?

Reply
Thread Tools Display Modes

Iptables: How do I forwarding public IPs into a router inside a privateIP network?

 
 
Stephen Hurrell
Guest
Posts: n/a

 
      11-21-2003, 07:35 AM

Hello

I have the following 10.0.0.0/8 Linux network behind a linux firewall.
I am using iptables/NAT-MASQ (via arno's firewall script) to do port
forwarding to the WWW, e-mail, etc. servers off one IP. All that works well.

My problem is that I now have to provide internet access into an
internal router that is a gateway to a 10.0.0.0/8 network. I have more
public IPs so I hope there is some way to forward, tunnel or bridge to
do this.


WWW<-->
(eth0)[Firewall](eth1)<-->(eth0)[WWW Server](eth1)
<--> Internal Network <--> router
<--> customer 10.0.0.0/8 network.

In the internal network I have a dial on demand router that is also
doing NAT 10.0.0.0/8. The customer would prefer not to renumber.

-----------

THe Masquerade HOW TO kinda talks doing this with iptables. Does anybody
have an idea that I could try?

Thank You

 
Reply With Quote
 
 
 
 
Horst Knobloch
Guest
Posts: n/a

 
      11-22-2003, 10:17 PM
Stephen Hurrell <(E-Mail Removed)> wrote:

> I have the following 10.0.0.0/8 Linux network behind a linux firewall.
> I am using iptables/NAT-MASQ (via arno's firewall script) to do port
> forwarding to the WWW, e-mail, etc. servers off one IP. All that works
> well.
>
> My problem is that I now have to provide internet access into an
> internal router that is a gateway to a 10.0.0.0/8 network. I have more
> public IPs so I hope there is some way to forward, tunnel or bridge to
> do this.


Hm, are you saying, that you currently have only WWW and email
access for your internal network via proxy server(s) to the
Internet, and now you want fullblown Internet access for the
internal network?


> WWW<-->
> (eth0)[Firewall](eth1)<-->(eth0)[WWW Server](eth1)
> <--> Internal Network <--> router
> <--> customer 10.0.0.0/8 network.
>
> In the internal network I have a dial on demand router that is also
> doing NAT 10.0.0.0/8. The customer would prefer not to renumber.


I'm still confused about your current network setup. You also gave
too few information about the IP adrs and netmasks.

Is the "Internal Network" above a real network or is it just
a description that from here on your internal net begins?

You talk about an internal router and a dial on demand router
above, are these two routers or are you talking about the same
one?

What sense does it make to have a dial on demand router in
an internal network? Do you have two direct connections to
the Internet, one via the Firewall and a second one via
your dial on demand router?

You see, still lots of confusion here on my side. :-)
I guess you need to better explain and give more information
about your current setup and about what you want to achieve.


Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn
 
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables not forwarding from public to private subnet. techjohnny@gmail.com Linux Networking 2 09-28-2007 10:57 PM
Setting up public IP inside firewall: possible? Max Linux Networking 4 09-07-2007 05:29 PM
Connect public IP from inside - IPTables Marv Linux Networking 1 03-04-2004 01:07 AM
public IP from inside the LAN templeton Linux Networking 0 01-20-2004 03:42 PM
iptables: port forwarding and hardware router Tom H. Lautenbacher Linux Networking 3 09-18-2003 12:31 PM



1 2 3 4 5 6 7 8 9 10 11