Skip to content

Instantly share code, notes, and snippets.

View martijnw's full-sized avatar

Martijn martijnw

  • Wherever there's free Wi-Fi.
View GitHub Profile
@martijnw
martijnw / ArchLinux VPN
Created May 18, 2016 21:58 — forked from jinzhu/ArchLinux VPN
a script to quick setup vpn server in archlinux
#!/bin/bash
# wosmvp@gmail.com
# thanks sushiyant (me@sushiyant.org)
pacman -S iptables pptpd
echo "iptables -A INPUT -i ppp+ -j ACCEPT" >> /etc/rc.local
echo "iptables -A OUTPUT -o ppp+ -j ACCEPT" >> /etc/rc.local
echo "iptables -A INPUT -p tcp --dport 1723 -j ACCEPT" >> /etc/rc.local
echo "iptables -A INPUT -p 47 -j ACCEPT" >> /etc/rc.local