2021-11-18

OpenWRT + Pi + PPPoE + VPN (static IP)

uncompress the img.gz to img , dd it to TF card

boot it , OpenWRT default IP is 192.168.1.1 from eth port , connect it , if no DHCP to get IP , set NIC to use like static ip 192.168.1.123/24 , and connect to 192.168.1.1

add a wan interface "wan" select PPPoE and device select "br-lan" , "Obtain IPv6 address" set Disable

set "LAN" IPv4 address to like "192.168.200.1" , you may want use different subnet

LED Configuration set led0 "kernel: heartbeat" and led1 "kernel: netdev" + "br-lan" + "Transmit + Receive" , the Pi led will be one heartbeat and one network status

then use this doc , this doc will keep continue upgrade to last version ... ssh to Pi and all copy paste to work haha

https://openwrt.org/docs/guide-user/services/vpn/openvpn/server

and if use Tunnelblick at macOS , import the .ovpn key and connect it , will get like "Unrecognized option or missing parameter(s)" , you need goto Tunnelblick settings , select the imported config , and set the "OpenVPN Version" to lastest version

have fun : )

沒有留言:

張貼留言