Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (12 sloc) 409 Bytes
#!/bin/bash
INET_IFACE=eth1
SHARE_IFACE=wlan0
SHARE_NAME=lol_net
ifconfig ${SHARE_IFACE} down
iwconfig ${SHARE_IFACE} essid ${SHARE_NAME} mode Ad-Hoc
ifconfig ${SHARE_IFACE} up
ifconfig ${SHARE_IFACE} 192.168.5.1
echo 1 > /proc/sys/net/ipv4/ip_forward
sed s/^interface=.*$/interface=${SHARE_IFACE}/g -i /etc/dnsmasq.conf
/etc/rc.d/dnsmasq restart
iptables -t nat -A POSTROUTING -o ${INET_IFACE} -j MASQUERADE
Jump to Line
Something went wrong with that request. Please try again.