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

4/17/12

Configuring DHCP Server on Debian Server 5

1. insert the installation CD Debian 5 Server
2. apt-get install dhcp3-server
>to install dhcp server
3. nano / etc/default/dhcp3-server >determine eth doing dhcp server to the client system.


4.In this case eth1 to provide dhcp. For that fill eth1 between quotation marks as follows:

5. mv / etc/dhcp3/dhcpd.conf dhcpd.bak > backup data
6. nano / etc/dhcp3/dhcpd.conf > fill dhcp configuration as the following example:


7.etc/init.d/dhcp3-server restart > dhcp restart, if successful configuration will look like the picture

4/1/12

Automatic Proxy Server on Debian 5 Server

  1. pre-up iptables-t nat-A PREROUTING-p tcp - dport 80-j REDIRECT - to-port 3128 (typed in interfaces folder)
  2. insert the CD Debian 5
  3. apt-get install  squid 
  4. mv  /etc/squid/squid.conf  squid.bak
  5. nano / etc / squid / squid.conf  (text  Enter the following command )  
  6.  Save with Ctrl + X and press Enter
  7. nano / etc / squid / block.txt (fill in the url (website) to be blocked as the following example) and save  
  8.  / etc / init.d / squid restart (caption: restart squid)    
This information can I provide may be useful do not forget the criticisms and suggestions.