Debian connected but not take IP
-
- Posts: 5
- Joined: Sun Nov 15, 2015 12:32 pm
Debian connected but not take IP
Hello
i have configured my server and i testing it from my Windows Client is working very good and get the IP so when i goto showip.com i found the server IP .
but the problem at the Debian linux client is connected successfully but not get the IP
i have configured my server and i testing it from my Windows Client is working very good and get the IP so when i goto showip.com i found the server IP .
but the problem at the Debian linux client is connected successfully but not get the IP
You do not have the required permissions to view the files attached to this post.
-
- Posts: 551
- Joined: Wed Jul 24, 2013 12:09 pm
Re: Debian connected but not take IP
SoftEther VPN only connect a virtual ethernet cable to your computer, you need to manage your adapter using the way of your own operating system.
-
- Posts: 5
- Joined: Sun Nov 15, 2015 12:32 pm
Re: Debian connected but not take IP
i have already virtual adapter
vpn_vpn Link encap:Ethernet HWaddr 00:ac:31:45:e5:de
inet6 addr: fe80::2ac:31ff:fe45:e5fe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1067 errors:0 dropped:0 overruns:0 frame:0
TX packets:299 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:54566 (53.2 KiB) TX bytes:24786 (24.2 KiB)
but i don't know why is not get the IPV4 IP
vpn_vpn Link encap:Ethernet HWaddr 00:ac:31:45:e5:de
inet6 addr: fe80::2ac:31ff:fe45:e5fe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1067 errors:0 dropped:0 overruns:0 frame:0
TX packets:299 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:54566 (53.2 KiB) TX bytes:24786 (24.2 KiB)
but i don't know why is not get the IPV4 IP
-
- Posts: 223
- Joined: Fri Jul 03, 2015 2:21 pm
Re: Debian connected but not take IP
Did you configure your virtual adapter to run DHCP ?, if you did't, how will the virtual adapter take an ip address ?
on ubuntu i usually do some thing like this :
Once the connection is connected successfully, do this
sudo dhclient myVirtualAdapter
then verify that you virtual adapter got an ip address :
ifconfig myVirtualAdapter
then you have to see the ip address that the virtual adapter got
Good luck
on ubuntu i usually do some thing like this :
Once the connection is connected successfully, do this
sudo dhclient myVirtualAdapter
then verify that you virtual adapter got an ip address :
ifconfig myVirtualAdapter
then you have to see the ip address that the virtual adapter got
Good luck
-
- Posts: 5
- Joined: Sun Nov 15, 2015 12:32 pm
Re: Debian connected but not take IP
thank you this is good step it's take the IP
vpn_vpn Link encap:Ethernet HWaddr 00:ac:31:45:e5:de
inet addr:192.168.30.10 Bcast:192.168.30.255 Mask:255.255.255.0
but still show the original ip when connecting to any site not show the " VPN server IP "
note the server is enabled virtual NAT and is working when i try at windows machine " is show the VPN server IP " when connect to any site but at linux no
did you can advice me what i can do ?
vpn_vpn Link encap:Ethernet HWaddr 00:ac:31:45:e5:de
inet addr:192.168.30.10 Bcast:192.168.30.255 Mask:255.255.255.0
but still show the original ip when connecting to any site not show the " VPN server IP "
note the server is enabled virtual NAT and is working when i try at windows machine " is show the VPN server IP " when connect to any site but at linux no
did you can advice me what i can do ?
-
- Posts: 223
- Joined: Fri Jul 03, 2015 2:21 pm
Re: Debian connected but not take IP
i think the problem due to routing, so post the output of the command : route -n, right after you connect to the softether server
-
- Posts: 5
- Joined: Sun Nov 15, 2015 12:32 pm
Re: Debian connected but not take IP
the route -n results in the screenshot i think the DHCP IP in the route table already
You do not have the required permissions to view the files attached to this post.
-
- Posts: 223
- Joined: Fri Jul 03, 2015 2:21 pm
Re: Debian connected but not take IP
Right, your problem with routing, the routing table says if the packet goes to the network 192.168.30.0/24, forward the packet over the VPN tunnel, otherwise let the packet goes over the local path not over the VPN tunnel, just to make sure, issue the following command, right after you connect to the softether server :
sudo route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.30.1 dev vpn_adapter
Note that 192.168.30.1 is the host IP of your SECURENAT host (check what is secureNat host ip, before you do this, otherwise may you get trapped in your local subnet, just reboot your machine if that happens)
then test to see (:
Good luck
sudo route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.30.1 dev vpn_adapter
Note that 192.168.30.1 is the host IP of your SECURENAT host (check what is secureNat host ip, before you do this, otherwise may you get trapped in your local subnet, just reboot your machine if that happens)
then test to see (:
Good luck
-
- Posts: 5
- Joined: Sun Nov 15, 2015 12:32 pm
Re: Debian connected but not take IP
i made the changes and its was same thing not going thought the VPN server IP it's still going out from the machine IP , and i rebooted after reboot i found the route table back again to the original .
i don't know how i can fix this .
i testing at the windows machine everything is working good
i don't know how i can fix this .
i testing at the windows machine everything is working good
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: Debian connected but not take IP
Please delete original default gateway after adding new.
You have to change route table everytime you connect.
You can create some script.
You have to change route table everytime you connect.
You can create some script.