w1100n
This site is best viewed in Google Chrome
8/30/2017 22:34

sudo -s  #  **rest of the instructions assume you've already done this
sudo apt-get update
sudo apt-get upgrade

sudo apt-get install openvpn easy-rsa
cd /usr/share/openvpn/easy-rsa
ln -s openssl-1.0.0.cnf openssl.cnf

https://www.raspberrypi.org/forums/viewtopic.php?t=81657

apt-get install openvpn easy-rsa dnsmasq

<br />iptables -A INPUT -i tun+ -j ACCEPT
iptables -A OUTPUT -o tun+ -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o wlan0 -j MASQUERADE
iptables -I FORWARD -i tun0 -o wlan0 -s 10.8.0.0/24 -d 192.168.1.0/24 -m conntrack --ctstate NEW -j ACCEPT
iptables -A INPUT -i wlan0 -m state --state NEW -p udp --dport 4911 -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT
service openvpn restart


Comments are closed.

<< Previous Posts Newer Posts >>
辽ICP备14012896