----- Original Message -----
From: "Marvin Pascual" <[EMAIL PROTECTED]>
To: "Philippine Linux Users Group" <[EMAIL PROTECTED]>
Sent: Tuesday, August 19, 2003 4:46 PM
Subject: [plug] Linux as a router


> How can I make Linux as a router?

by enabling ip forwarding

> I have a Linux box that will stand as
> a firewall and a router.  The firewall box has 3 interfaces:
>
> [1] eth0 is a public IP address of 203.215.79.194
> [2] eth1 is a public IP address of 203.215.79.209
> [3] eth2 is a private IP address of 192.168.0.1
>
> The firewall box is directly connected to our ISP.
>
> Now, I want that the web server which is interfacing the firewall box's
> eth1 is also using a public IP address of 203.215.79.210 (eth0).  My
> question is, how can I connect to my web server from the Internet if I
> want to connect it directly to it's IP address or FQDN?  I also want
> that I can ping the web server from the Internet.

public ip address is always be seen if you have the proper routes on it.. in
your case, if eth0 is facing on the net, while eth1 is facing to your web
server, your web server default gateway must be 203.215.79.209 (eth1), linux
box default gateway must be your router and your router must point to
203.215.79.194 (eth0) if it sees the network segment where 203.215.79.209
and .210 belong...

fooler.



_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL 
PROTECTED]

Reply via email to