【OpenWRT】—— OpenVPN Server for Tun device
| 本帖最後由 角色 於 2013-11-24 14:13 編輯 
 Source : http://wiki.openwrt.org/doc/howto/vpn.server.openvpn.tun
 
 1. Installation of OpenVPN package
 2. Network configuration複製代碼opkg update
opkg install openvpn
 Add a VPN interface to the end of /etc/config/network
 3. Firewall configuration複製代碼config interface 'vpn'
        option proto 'none'
        option ifname 'tun0'
 Add rules to the end of /etc/config/network
 4. Restarting networking and firewall複製代碼config 'rule'
        option 'target' 'ACCEPT'
        option 'dest_port' '1194'
        option 'src' 'wan'
        option 'proto' 'udp'
        option 'family' 'ipv4'
config zone
        option name 'vpn'
        option input 'ACCEPT'
        option forward 'REJECT'
        option output 'ACCEPT'
        option network 'vpn'
config forwarding
        option dest 'lan'
        option src 'vpn'
config forwarding
        option dest 'vpn'
        option src 'lan'
複製代碼/etc/init.d/network restart
/etc/init.d/firewall restart
 |