enriquecm
20th January 2006, 03:51
well i have problema with the configuration
http://www.howtoforge.com/perfect_setup_ubuntu_5.04
I have one public IP (200.123.123.123)
In my server i have two network interface
1 for lan: eth0 (private IP) (192.168.0.1) <--- for give to the lan administration and internet service
1 for wan: eth1 (200.123.123.123)
I buy tree dns (www.nic.com)
pepito.com = (200.123.123.123)
pancho.com = (200.123.123.123)
cool.com = (200.123.123.123)
to do that I edit /etc/network/interfaces
auto eth1
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
then I restart my service
/etc/init.d/networking restart
I edit /etc/hosts
127.0.0.1 localhost.localdomain localhost server
then
echo localhost.localdomain > /etc/hostname
/bin/hostname -F /etc/hostname
Well i think that i dont know what is the problem, but the idea is that:
one user of the lan can access with this ip 192.168.0.1
and the users of the wan can access with this ip 200.123.123.123
and my dns pepito.com, pancho.com, cool.com connect to my server to the wan
ANY IDEAS !!?!?!??!
http://www.howtoforge.com/perfect_setup_ubuntu_5.04
I have one public IP (200.123.123.123)
In my server i have two network interface
1 for lan: eth0 (private IP) (192.168.0.1) <--- for give to the lan administration and internet service
1 for wan: eth1 (200.123.123.123)
I buy tree dns (www.nic.com)
pepito.com = (200.123.123.123)
pancho.com = (200.123.123.123)
cool.com = (200.123.123.123)
to do that I edit /etc/network/interfaces
auto eth1
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
then I restart my service
/etc/init.d/networking restart
I edit /etc/hosts
127.0.0.1 localhost.localdomain localhost server
then
echo localhost.localdomain > /etc/hostname
/bin/hostname -F /etc/hostname
Well i think that i dont know what is the problem, but the idea is that:
one user of the lan can access with this ip 192.168.0.1
and the users of the wan can access with this ip 200.123.123.123
and my dns pepito.com, pancho.com, cool.com connect to my server to the wan
ANY IDEAS !!?!?!??!