Created
January 4, 2016 16:32
-
-
Save irvifa/04a43b39088658117b08 to your computer and use it in GitHub Desktop.
Arch linux arm conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/sysctl.d/30-ipforward.conf | |
net.ipv4.ip_forward=1 | |
net.ipv6.conf.default.forwarding=1 | |
net.ipv6.conf.all.forwarding=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/netctl/bridge | |
Description="bridge test" | |
Interface=br0 | |
Connection=bridge | |
BindsToInterfaces=(eth0) | |
IP=dhcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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