This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_stuff:vpn_troubleshooting [2018/08/01 08:27] – jotasandoku | network_stuff:vpn_troubleshooting [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 41: | Line 41: | ||
| * http:// | * http:// | ||
| - | **OPENVPN** | + | **OPENVPN |
| * **Installation**: | * **Installation**: | ||
| * pki, ca, server and client cert (after being generated) + configuration , in : / | * pki, ca, server and client cert (after being generated) + configuration , in : / | ||
| Line 62: | Line 62: | ||
| Create ovpn file and start client: | Create ovpn file and start client: | ||
| [[https:// | [[https:// | ||
| - | openvpn --config /home/jotasan/client1.ovpn # client | + | openvpn --config /home/jaime/ovpnrpi/ |
| | | ||
| Line 68: | Line 68: | ||
| systemctl stop firewalld | systemctl stop firewalld | ||
| systemctl start firewalld | systemctl start firewalld | ||
| + | |||
| + | |||
| + | |||
| ---- | ---- | ||
| + | **OPENWRT CLIENT OPENVPN**: | ||
| + | In LuCi: | ||
| + | * Click Update-list | ||
| + | * Then INSTALL: luci-app-openvpn openvpn-easy-rsa openvpn-openssl | ||
| + | * Press OK on each of them to download and install them. | ||
| + | |||
| + | In CLI, Have these files: | ||
| + | |||
| + | root@OpenWrt:/ | ||
| + | config openvpn ' | ||
| + | option config '/ | ||
| + | option enabled ' | ||
| + | | ||
| + | Firewall and network config (from [[https:// | ||
| + | |||
| + | |||
| + | root@OpenWrt:/ | ||
| + | config zone ' | ||
| + | option name ' | ||
| + | list network ' | ||
| + | list network ' | ||
| + | option output ' | ||
| + | option forward ' | ||
| + | option masq ' | ||
| + | option mtu_fix ' | ||
| + | option input ' | ||
| + | list device ' | ||
| + | | ||
| + | root@OpenWrt:/ | ||
| + | config interface ' | ||
| + | option proto ' | ||
| + | option ifname ' | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| LINUX VPN-CLIENT\\ | LINUX VPN-CLIENT\\ | ||
| Line 93: | Line 132: | ||
| May 9 05:16:22 observium xl2tpd: xl2tpd[23954]: | May 9 05:16:22 observium xl2tpd: xl2tpd[23954]: | ||
| + | |||
| + | LIBRESWAN STRONGSWAN NOTES: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * pluto is is an IKE (" | ||
| + | |||
| + | yum install libreswan | ||
| + | ipsec initnss | ||
| + | systemctl enable ipsec | ||
| + | systemctl start ipsec | ||
| + | | ||
| + | # Use this to add and bring up the tunnel and see the exchange! | ||
| + | ipsec auto --add mycompany2-tunnel-1 | ||
| + | ipsec auto --up mycompany2-tunnel-1 | ||
| + | |||
| + | |||
| + | * In the vnic: "tick skip Source/Dest Checks" | ||
| + | * modify | ||
| + | |||
| + | # https:// | ||
| + | conn mycompany2-tunnel-1 | ||
| + | | ||
| + | # leftid=193.123.39.207 # This is the public IP (nat-t) | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| + | cat / | ||
| + | my-pub-ip x-end-pub-ip : PSK " | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | CLASSY IPSEC-VPN TROUBLESHOOT: | ||
| + | * [[http:// | ||
| + | * [[https:// | ||