I'm Leo come from China, because our GOV we can't vist Internet as wish as you like, but we have other way to do, so I can see you here
I see your message and you are very professional, but I'm just a new guy come here.
I want to thank you very much if you can give me a hand with StrongSwan on OpenWRT.
Because I try many many days and work hard but still can't connect it success!
I want to setup a l2tp over ipsec client on openwrt use strongswan, I install every thing to a old desktop and it can work well as a router.
My environment is:
1.OpenWrt 19.07.1, r10911-c155900f66
2.Starting strongSwan 5.8.2
uniqueids = no
Add connections here.
keyexchange=ikev1 (I try ikev2 first but can't work, then I use google that a lot of people use ikev1 for this, but still can't connect)
Sample VPN connections
right=xx.xx.com (It can't use IP to setup because the server IP change everyday)
/etc/ipsec.secrets - strongSwan IPsec secrets file
[xx.xx.com](http://xx.xx.com/) : PSK "xxxxxx"
port = 1701
auth file = /etc/xl2tpd/xl2tp-secrets
access control = no
lns = xx.xx.com
ppp debug = yes
pppoptfile = /etc/ppp/options.l2tpd.client
length bit = yes
bps = 1000000
require-pap (I try to setup in my TPLINK router and I see log is PAP Aut, but it can't show me more for detail)
I got a problem when I followed your instructions for setting up dns. I really hope that you will help me.
I followed these commands, ** env | sed -n -e "
"| sort -u> /tmp/resolv.conf.vpn
uci set dhcp. @ dnsmasq  .resolvfile = "/ tmp / resolv.conf.vpn"
/etc/init.d/dnsmasq restart ** But after restarting dnsmasq, my Internet is disconnected. after that, I also cannot connect to vpn. But after executing this command ** uci set dhcp. @ Dnsmasq  .resolvfile = "/ tmp / resolv.conf.auto"
/etc/init.d/dnsmasq* restart the Internet starts working fine, but the dns also remains from the ISP. I hope for your help. Thanks in advance (I am using ProtonVPN)