OpenBSD as DHCP Server
Task: OpenBSD server as DHCP server.Description:OpenBSD server as DHCP server.
Howto: Ensure that DHCP Daemon is active: cat /etc/rc.conf.local should say (replace NIC name if different):
dhcpd_flags="fxp0"
Then, edit /etc/dhcpd.conf.
The options are pretty self-explanatory.
option domain-name "example.com";
option domain-name-servers 192.168.1.3, 192.168.1.5;
subnet 192.168.1.0 netmask 255.255.255.0
{ option routers 192.168.1.1;
range 192.168.1.32 192.168.1.127;
}
If you want to start dhcpd(8) from the command line, after editing /etc/dhcpd.conf, try:
touch /var/db/dhcpd.leases
dhcpd fxp0
The touch line is needed to create an empty dhcpd.leases file before dhcpd(8) can start.
Source: OpenBSD Manual
22.10.2010. 20:25
OpenBSD NTP update
Task: Ensure reliable, and secure time synchronization on OpenBSD.Description: Over time, a computer's clock may be inaccurate. The Network Time Protocol (NTP) is one way to ensure your clock stays accurate on your OpenBSD server.
Howto: Ensure that NTP is active: cat /etc/rc.conf.local should say:
ntpd_flags= # enabled during install
Issue the command in terminal: ntpd -s
See the actual date via the command date
22.10.2010. 20:12
<< First
< Previous
[2 / 2]
Next > Last >>
Categories
- Vingaard.dk(2)
- Articles and Presentation(8)
- Research & Resources(2)
- In the news(4)
- OpenBSD(5)
- Modsecurity help(1)
RSS Feeds
New Posts
- How-to: Make a info.php file
- How-to: Whitelist in Modesecurity
- A Tsunami of Japan Aid on-line fraud !
New Comments
- No comments at the moment