Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, September 20, 2011

DNS and Web Server with Debian

Setting  your ip with command #nano /etc/network/interfaces

Allow-hotplug eth0
iface eth0 inet static
address 192.168.10.24
netmask 255.255.255.240
network 192.168.10.16
broadcast 192.168.10.31
gateway 192.168.10.24

Activated ip forward with command #nano /etc/sysctl.conf
Find #net.ipv4.ip_forward=1
delete '#' 
Then  restart interfaces with command #/etc/init.d/networking restart
After that, edit file #nano /etc/resolv.conf