How to setup Softether using TAP/local bridge?
Posted: Tue Apr 09, 2013 8:25 pm
Hello,
Could you please write a short guide/tutorial on how to setup Softether using TAP / local bridge instead of SecureNAT?
I am having issues setting it up. Here's what I did so far:
./vpscmd
natdisable, dhcpdisable, securenatdisable //Disable all the NAT stuff;
bridgecreate /DEVICE:tap0 /TAP:yes //If this doesn't work, try setting it up through Softether's Windows Management interface;
EXIT
run: ifconfig tap_tap0 192.168.1.254
edit: /etc/default/isc-dhcp-server
INTERFACES="tap_tap0"
apt-get install isc-dhcp-server apt-get install
edit: /etc/dhcp/dhcpd.conf
ddns-update-style none;
option domain-name "XXX";
option domain-name-servers 8.8.8.8, 8.8.4.4;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}
run: iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to-source VPS.IP.ADDRESS.HERE
Open the generated .OVPN file:
Change 'tun' to 'tap', as we've setup a TAP bridge.
Also, without doing this, I kept getting an authentication failure
Based upon:
http://www.lowendtalk.com/discussion/87 ... oftware/p2
After the above steps, I can connect via OpenVPN But I am not getting an IP.
Thanks in advance!
Could you please write a short guide/tutorial on how to setup Softether using TAP / local bridge instead of SecureNAT?
I am having issues setting it up. Here's what I did so far:
./vpscmd
natdisable, dhcpdisable, securenatdisable //Disable all the NAT stuff;
bridgecreate /DEVICE:tap0 /TAP:yes //If this doesn't work, try setting it up through Softether's Windows Management interface;
EXIT
run: ifconfig tap_tap0 192.168.1.254
edit: /etc/default/isc-dhcp-server
INTERFACES="tap_tap0"
apt-get install isc-dhcp-server apt-get install
edit: /etc/dhcp/dhcpd.conf
ddns-update-style none;
option domain-name "XXX";
option domain-name-servers 8.8.8.8, 8.8.4.4;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}
run: iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to-source VPS.IP.ADDRESS.HERE
Open the generated .OVPN file:
Change 'tun' to 'tap', as we've setup a TAP bridge.
Also, without doing this, I kept getting an authentication failure
Based upon:
http://www.lowendtalk.com/discussion/87 ... oftware/p2
After the above steps, I can connect via OpenVPN But I am not getting an IP.
Thanks in advance!