Skip to content

Instantly share code, notes, and snippets.

@irvifa
Created January 4, 2016 16:32
Show Gist options
  • Save irvifa/04a43b39088658117b08 to your computer and use it in GitHub Desktop.
Save irvifa/04a43b39088658117b08 to your computer and use it in GitHub Desktop.
Arch linux arm conf
#/etc/sysctl.d/30-ipforward.conf
net.ipv4.ip_forward=1
net.ipv6.conf.default.forwarding=1
net.ipv6.conf.all.forwarding=1
#/etc/netctl/bridge
Description="bridge test"
Interface=br0
Connection=bridge
BindsToInterfaces=(eth0)
IP=dhcp
ssid=archpi
wpa_passphrase=passwd
interface=wlan0
bridge=br0
auth_algs=3
channel=7
driver=nl80211
hw_mode=g
logger_stdout=-1
logger_stdout_level2=g
max_num_sta=5
rsn_pairwise=CCMP
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
ip link set up dev wlan0
ip addr add 192.168.0.1/24 dev wlan0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment