Skip to content

Instantly share code, notes, and snippets.

View sreehax's full-sized avatar
👾

Sreehari Sreedev sreehax

👾
View GitHub Profile
@dweinstein
dweinstein / dhcpd.conf
Last active August 1, 2018 06:10
wireless ethernet NAT'd join (internet sharing) for my laptop running ArchLinux. This is so I can connect a desktop to my wireless network via laptop wifi. The desktop is assumed to use dhcp to get an IP address. Therefore, this script assumes that /etc/dhcpd.conf is configured with an appropriate subnet, and that /etc/conf.d/dhcp (on archlinux)…
# dhcpd.conf
#
# configuration file for dhcpd, which I generally use
# when NAT'ing wifi/ethernet for internet sharing.
# intended for /etc/dhcpd.conf
# option definitions common to all supported networks...
option domain-name "local.";
option domain-name-servers 10.0.1.1, 8.8.8.8;