FreeBSD is a UNIX operating system that can be executed on a computer with an Intel compliant, DEC Alpha, or PC98 architecture. Because FreeBSD is a branch of UNIX, it has the characteristics of UNIX and can do the work that UNIX can do. At the same time, FreeBSD is also a set of free operating system, it can make our personal computer become advanced workstation, more stable provide you need network service. Next, this article will focus on how to set up a Web server under the FreeBSD platform.
First, access to the Internet
First let FreeBSD access to the Internet and set a good proxy service. The use of ADSL access to the Internet in two cases, that is, through dial-up access to dynamic IP or ISP provided static IP. The following describes the dynamic IP configuration process.
The method is simple, through directly edit/etc/ppp/ppp.conf file and/etc/rc.conf file can realize access to the Internet, and support the NAT way transparent proxy.
When you open the Ppp.conf file to implement the configuration, use the following command:
# vi/etc/ppp/ppp.conf
Configuration instance (Note that there are spaces before set):
Default
Set Log Phase Tun command
Set IFADDR 10.0.0.1/0 10.0.0.2/0
ADSL: # Configuration Code
Set Device Pppoe:vr0 # VR0 to the name of the network card you connect to the ADSL modem
Set MRU 1492
Set MTU 1492
Set AuthName Username # username is a dial-up user name
Set Authkey Password # password is a dial-up password
Set dial
Set Login
Add default Hisaddr
Then, when you open the Rc.conf file to implement the configuration, use the following command:
# vi/etc/rc.conf
Configuration instance:
#--Sysinstall generated Deltas--# Tue June 15 21:20:28 2006
# Created:tue 15 21:20:28 2006
# Enable Network daemons for user convenience.
# Please make all changes to this file, not to/etc/defaults/rc.conf.