How can I go about routing all my traffic through the vpn?

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
JordanFromIT
Posts: 7
Joined: Sun Dec 21, 2014 7:54 pm

How can I go about routing all my traffic through the vpn?

Post by JordanFromIT » Sun Dec 21, 2014 7:58 pm

As the title states I just want to know if it's possible to route all traffic from my desktop(client) to the remote centos(linux) softether vpn server? When I google search my IP address on various sites after clearing the cache it still shows the public IP of my home network, while being connected to the remote server. I have no problems connecting or with setup, I just want to know if what I am asking is even possible.

JordanFromIT
Posts: 7
Joined: Sun Dec 21, 2014 7:54 pm

Re: How can I go about routing all my traffic through the vp

Post by JordanFromIT » Mon Dec 22, 2014 2:51 am

JordanFromIT wrote:
> As the title states I just want to know if it's possible to route all
> traffic from my desktop(client) to the remote centos(linux) softether vpn
> server? When I google search my IP address on various sites after clearing
> the cache it still shows the public IP of my home network, while being
> connected to the remote server. I have no problems connecting or with
> setup, I just want to know if what I am asking is even possible.

For those gazing upon this thread for answers I might have found my answers here. I'm testing to verify. If it works I will post.
https://www.sumovpn.com/guides/ubuntu/sevpn.html

JordanFromIT
Posts: 7
Joined: Sun Dec 21, 2014 7:54 pm

Re: How can I go about routing all my traffic through the vp

Post by JordanFromIT » Mon Dec 22, 2014 3:49 am

JordanFromIT wrote:
> JordanFromIT wrote:
> > As the title states I just want to know if it's possible to route all
> > traffic from my desktop(client) to the remote centos(linux) softether vpn
> > server? When I google search my IP address on various sites after clearing
> > the cache it still shows the public IP of my home network, while being
> > connected to the remote server. I have no problems connecting or with
> > setup, I just want to know if what I am asking is even possible.
>
> For those gazing upon this thread for answers I might have found my answers here. I'm
> testing to verify. If it works I will post.
> https://www.sumovpn.com/guides/ubuntu/sevpn.html

Didn't work.

JordanFromIT
Posts: 7
Joined: Sun Dec 21, 2014 7:54 pm

Re: How can I go about routing all my traffic through the vp

Post by JordanFromIT » Mon Dec 22, 2014 9:38 pm

I solved my problem! I routed the virtual adapters IP to the physical adapter and that seemed to have changed my IP, speeds are up, traffic is encrypted. Life feels good.

command was:

iptables -t nat -A POSTROUTING -s 192.168.250.1/32 -o venet0 -j MASQUERADE

mat_rapit
Posts: 14
Joined: Mon Dec 08, 2014 4:17 am

Re: How can I go about routing all my traffic through the vp

Post by mat_rapit » Tue Dec 23, 2014 7:37 am

JordanFromIT wrote:
> I solved my problem! I routed the virtual adapters IP to the physical
> adapter and that seemed to have changed my IP, speeds are up, traffic is
> encrypted. Life feels good.
>
> command was:
>
> iptables -t nat -A POSTROUTING -s 192.168.250.1/32 -o venet0 -j MASQUERADE

Did you do it on client or server? If on client..how can i do it
with client on windows 7? Ive setup the server on windows 7 too
and can't find way to configure iptables.
Much appreciate if you can help me.

BoredAus
Posts: 115
Joined: Sun Nov 23, 2014 3:29 am

Re: How can I go about routing all my traffic through the vp

Post by BoredAus » Tue Dec 23, 2014 10:52 am

mat_rapit wrote:
> JordanFromIT wrote:
> > I solved my problem! I routed the virtual adapters IP to the physical
> > adapter and that seemed to have changed my IP, speeds are up, traffic is
> > encrypted. Life feels good.
> >
> > command was:
> >
> > iptables -t nat -A POSTROUTING -s 192.168.250.1/32 -o venet0 -j MASQUERADE
>
> Did you do it on client or server? If on client..how can i do it
> with client on windows 7? Ive setup the server on windows 7 too
> and can't find way to configure iptables.
> Much appreciate if you can help me.

iptables is not a windows command, it is part of nix platforms such as linux for configuring the built-in kernel level firewall.

mat_rapit
Posts: 14
Joined: Mon Dec 08, 2014 4:17 am

Re: How can I go about routing all my traffic through the vp

Post by mat_rapit » Tue Dec 23, 2014 12:49 pm

Thanks for reply.
if iptables not for windows, is it anyway i can speedup client throughput since the only way i see is using iptables from this :
http://www.vpnusers.com/viewtopic.php?f=7&t=2639

i have no idea anymore to speedup the throughput.


> iptables is not a windows command, it is part of nix platforms such as linux for
> configuring the built-in kernel level firewall.

JordanFromIT
Posts: 7
Joined: Sun Dec 21, 2014 7:54 pm

Re: How can I go about routing all my traffic through the vp

Post by JordanFromIT » Thu Dec 25, 2014 3:42 am

To clarify I used that command on the linux server. The command is in the linux bash terminal not softether(vpncmd).

BoredAus
Posts: 115
Joined: Sun Nov 23, 2014 3:29 am

Re: How can I go about routing all my traffic through the vp

Post by BoredAus » Thu Dec 25, 2014 9:36 am

mat_rapit, your issues lies with your uplink speed from your server to your client. If your client is accessing the VPN server via internet, it utilises heavily on your server's uplink speeds mainly and not your downlink speeds. So in a general sense, your uplink speeds dictate your maximum download speeds minus any protocol overheads whilst communicating via internet.

Here is where you have stated your issues and the answers are pretty apparent:
viewtopic.php?t=3983

"
Network Speed from ISP are 8Mbps Download / 512k upload.
...
Throughput test result : Communication Data Volume in Download: 537KBytes
...
Total Average Throughput : 290 Kbps
"

Squeezing out half a meg from the server is already reasonable enough considering the amount of hops the connection has to go through not including any potential latency issues and/or protocol overheads. Squeezing out more than half a meg would require you to have good latency between you and the server at all times and to use compression. You are not going to be able to get at least 5 Mbps when you are routing through internet and to your server which only has 512 K uplink. Not without you looking at upgrading the uplink.

You can also clearly see this is not a test running via LAN connection as you have stated before that you have 1 Gbps NIC card.

As mesa57 stated here as well via in the link you posted:
http://www.vpnusers.com/viewtopic.php?f=7&t=2639#p5422

"As internet traffic travels over the server, a speedtest over internet will use double bandwidth."

mat_rapit
Posts: 14
Joined: Mon Dec 08, 2014 4:17 am

Re: How can I go about routing all my traffic through the vp

Post by mat_rapit » Thu Dec 25, 2014 12:51 pm

Thanks for looking all my question in this forum all answered all of it...i'm really appreciate it.
For now im going to put this project on hold till i get a better uplink from my ISP.
Thanks again for all the help.

Post Reply