How can I go about routing all my traffic through the vpn?
-
- Posts: 7
- Joined: Sun Dec 21, 2014 7:54 pm
How can I go about routing all my traffic through the vpn?
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.
-
- Posts: 7
- Joined: Sun Dec 21, 2014 7:54 pm
Re: How can I go about routing all my traffic through the vp
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
> 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
-
- Posts: 7
- Joined: Sun Dec 21, 2014 7:54 pm
Re: How can I go about routing all my traffic through the vp
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 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.
-
- Posts: 7
- Joined: Sun Dec 21, 2014 7:54 pm
Re: How can I go about routing all my traffic through the vp
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
command was:
iptables -t nat -A POSTROUTING -s 192.168.250.1/32 -o venet0 -j MASQUERADE
-
- Posts: 14
- Joined: Mon Dec 08, 2014 4:17 am
Re: How can I go about routing all my traffic through the vp
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.
> 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.
-
- Posts: 115
- Joined: Sun Nov 23, 2014 3:29 am
Re: How can I go about routing all my traffic through the vp
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.
> 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.
-
- Posts: 14
- Joined: Mon Dec 08, 2014 4:17 am
Re: How can I go about routing all my traffic through the vp
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.
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.
-
- Posts: 7
- Joined: Sun Dec 21, 2014 7:54 pm
Re: How can I go about routing all my traffic through the vp
To clarify I used that command on the linux server. The command is in the linux bash terminal not softether(vpncmd).
-
- Posts: 115
- Joined: Sun Nov 23, 2014 3:29 am
Re: How can I go about routing all my traffic through the vp
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."
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."
-
- Posts: 14
- Joined: Mon Dec 08, 2014 4:17 am
Re: How can I go about routing all my traffic through the vp
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.
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.