You are not logged in.

#26 2010-05-28 13:27:32

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: HELP: VPN - Internet - LAN, Arch as Router on LAN

after step 3

add a route to your vpn server, since you are getting your eth0 ip address from dhcp, static routes will not apply until such time.

once done, add the vpn server dns address and ip to /etc/hosts

then use, route del default

now, pon myVPN, add the default line to the config file, ppp only adds a default route only if one does not exist, since eth0 default route already existed, you had to manually enter it

as for the 2 results, after which changes did u get an increase?

Offline

#27 2010-05-29 12:16:58

deukalion
Member
Registered: 2009-04-11
Posts: 50

Re: HELP: VPN - Internet - LAN, Arch as Router on LAN

Now it's not working anymore.

1) As far as I can tell, iptables is not enabled
2) su:ing
3) dhcpcd eth0 // got IP
4) route add IP.TO.MY.VPN eth0 // tried without eth0, or ppp0; eth0 was the only thing that worked to set
5) added the IP I connect to, and their DNS servers // so three ips in a list was added
6) route del default
7) pon MYVPN // doesn't connect, no ppp0 interfaces is available
8) route add default ppp0

No ppp0 shows up this time. I can't connect at all.

Offline

#28 2010-05-29 12:18:25

deukalion
Member
Registered: 2009-04-11
Posts: 50

Re: HELP: VPN - Internet - LAN, Arch as Router on LAN

I got changes in bandwidth when I did the last configuration and "it was stable" all day..

But still, the bandwidth is a 50% loss.

Offline

#29 2010-05-29 14:58:29

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: HELP: VPN - Internet - LAN, Arch as Router on LAN

change step 3 to

route add <ip.to.vpn> gw <eth0.default.gateway.ip> dev eth0

in myVPN ppp conf file, change the vpn server name to its ip address,

e.g, pty "pptp 11.22.33.44 --nolaunchpppd"

this will not do dns lookups, now proceed to steps 6,7

no need to do step 8 as ppp will auto add a default route if the line default is added to the conf file.

Offline

#30 2010-05-29 15:24:37

deukalion
Member
Registered: 2009-04-11
Posts: 50

Re: HELP: VPN - Internet - LAN, Arch as Router on LAN

I've always entered a manual IP instead of my VPN's dns.

as su:

1) dhcpcd eth0
2) route add <VPN.IP.I.CONNECT.TO> gw <GATEWAY.FROM.MY.ISP> dev eth0
3) route del default
4) pon myVPN

ping www.google.com
ping: unknown host www.google.com

/etc/hosts
<VPN.IP.I.CONNECT.TO>
<DNS FROM VPN #1>
<DNS FROM VPN #2>

/etc/resolv
nameserver <DNS FROM VPN #1>
nameserver <DNS FROM VPN #2>

route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
<VPN.GATEWAY>    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
<VPN.I.CONNECT.TO>      <GATEWAY.FROM.MY.ISP>     255.255.255.255 UGH   0      0        0 eth0
82.196.99.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

There's no connection now. Is there something I'm missing?

Offline

#31 2010-05-29 15:31:09

deukalion
Member
Registered: 2009-04-11
Posts: 50

Re: HELP: VPN - Internet - LAN, Arch as Router on LAN

As far as I can tell from the routing table, shouldn't there be any indication of the IP I get from my ISP?

Offline

#32 2010-05-29 16:35:43

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: HELP: VPN - Internet - LAN, Arch as Router on LAN

looks like ppp0 is not automatically set as your default gateway, i dont know why but it should. did u add the default parameter in the myVPN config.

if it doesnt work now, try setting ppp0 as default route manually.

route shows only the routes, not the interface ip, use ifconfig to get the ip assigned to u by your isp.

Offline

#33 2010-05-30 01:13:43

deukalion
Member
Registered: 2009-04-11
Posts: 50

Re: HELP: VPN - Internet - LAN, Arch as Router on LAN

/etc/ppp/peers/myVPN

pty "pptp <ip.to.vpn.server> --nolaunchpppd --timeout 0.01 --loglevel 2"

Offline

Board footer

Powered by FluxBB