I managed to configure it to actually connect to the WEP WiFi but now I have found a different problem:
The Pi is running a PPTP VPN server and in this case it works fine when using the wired Ethernet interface but not with the WiFi interface.
When the WiFi is running I can connect fine using PuTTY both through the wired and wifi addresses, so I didn't really understand why the VPN won't connect.
After some thought I realized that the actual IP address on which the traffic flows is entered into the /etc/pptpd.conf file:
Code: Select all
localip 192.168.0.151
remoteip 192.168.0.80-89Code: Select all
#Added when configuring PPTP VPN:
sudo iptables -t nat -A POSTROUTING -s 192.168.0.80/24 -o eth0 -j SNAT --to 192.168.0.151
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
How could I make the pptpd service listen and operate on more than one interface?
It uses eth0 now but I would like it to also use wlan0, which is on a different address.
I guess that I could add a localip in pptpd.conf but how do I handle the rc.local file entries?
It seems a lot more difficult.....
I am doing this on a RASPBIAN distribution downloaded as an image just a few days ago.