pwnieexpress / pwn_plug_sources

Public source repository for the Pwn Plug platform.
GNU General Public License v3.0
129 stars 94 forks source link

ssh based tunneling needs pointopoint #18

Closed sandinak closed 12 years ago

sandinak commented 12 years ago

your Enable_SSH_VPN.sh script has a small problem .. as distributed.. it creates a tun0 like this:

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.1.1.1 P-t-P:10.1.1.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:335 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:31444 (30.7 KiB) TX bytes:0 (0.0 B)

it needs to create one like this: tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.1.1.2 P-t-P:10.1.1.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:342 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:33019 (32.2 KiB) TX bytes:0 (0.0 B)

the script needs to be changed thus:

ifconfig tun0 10.1.1.2 10.1.1.1 netmask 255.255.255.252 to ifconfig tun0 10.1.1.2 pointopoint 10.1.1.1 netmask 255.255.255.252

( note the lack of double T's in pointopoint .. that's correct ) just an FYI.

sandinak commented 12 years ago

also .. for documentation purposes: I have it working quite successfully with the tun0 package found at http://tuntaposx.sourceforge.net/ for osx.. on 10.7 and 10.6. Just an FYI ;-)

jcran commented 12 years ago

Thanks! This has been fixed in the current version of the script and will be available with the next update to the plug!