Hi all,
I'm fairly new to the whole Linux world and I hope you can help me out. My current project is a Raspberry Pi that acts as a VPN client for all devices connected to it over WiFi.
This is the planned setup:
- Eth0 - connected to the broadband router, establishes link to internet
- Wlan0 - established WiFi network for other devices to connect to
- openVPN client to establish VPN link; I want ALL traffic coming from Wlan0 to go through the VPN tunnel
This is my config setup:
Code:
client
remote MYVPN.com 1194 udp
remote MYVPN.com 443 tcp-client
pull
auth-user-pass auth.config
comp-lzo adaptive
ca ca.crt
dev tun
proto udp
tls-client
script-security 2
cipher AES-256-CBC
mute 10
route-delay 5
push "redirect-gateway def1"
resolv-retry infinite
# dhcp-renew
# dhcp-release
# persist-key
# persist-tun
remote-cert-tls server
mssfix
verb 3
log-append /var/log/openvpn-client.log
It establishes the VPN link, but somehow the routing is messed up. Connected devices are not able to access the net.
Here is the IP table:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.132.21.1 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.132.21.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
128.0.0.0 10.132.21.1 128.0.0.0 UG 0 0 0 tun0
162.220.220.26 10.0.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
Where am I'm going wrong here? Any ideas?
Thank you for suggestions!!