On Mon, 2005-09-26 at 17:09 +0200, Andrea Ganduglia wrote: > On 9/26/05, Brent Clark <[EMAIL PROTECTED]> wrote: > > Andrea Ganduglia wrote: > > > I wonder if it is possible to have two internet connections running at > > > the same time on one box. Sure, one connection, one Eth > > > > > > Schema: > > > > > > Router0 <---> Eth0 TUX Eth1 <---> Router1 > > > Eth2 > > > | > > > | > > > LAN (Hub) > > > [EMAIL PROTECTED] I think solution suggested from David is better way for me. > I > have just one doubt. All my ADSL link have static IP Address, and I > have a web server into LAN. In this way can I view web server outside > LAN? or in small words, can I pre routing one ADSL link onto my web > server while I using it for LAN connections?
Sure, why not? assuming the ip address of your internal webserver is 192.168.0.5 iptables --table nat --append PREROUTING --in-interface eth0 --protocol tcp --destination-port 80 --jump DNAT --to-destination 192.168.0.5 I think that should do it, assuming you are already masquerading your internal hosts. That being said...its generally a good idea to place computers that accept connections from the outside world in a DMZ, so that you have plenty of control over what type of traffic passes between your webserver and internal/external hosts. -davidc -- gpg-key: http://www.zettazebra.com/files/key.gpg
signature.asc
Description: This is a digitally signed message part