bzkt
November 26th, 2009, 02:02 AM
Hello, I have a server at home that I run Ubuntu 9.10 on. This server is going to use a pptp-connection (ppp0) and routing all traffic through it.
So far I've set up the connection and made a script for ip-up that adds a route for it.
route add default dev ppp0
This works without any problem and all my traffic gets routed through the pptp-connection.
My problem is that I can't ssh to the server when the pptp-connection is enabled. I can ssh to the servers local and external ip when it's not using it, but when I use it I can't ssh to the external ip. I can ping the external ip but when I try to ssh I just get a time out.
ssh -v <myuser>@<external ip for ppp0> just outputs that it times out. I've tried to connect from another remote linux server as well. If I ssh to the local ip and connects to the server from the server itself using the external ip for ppp0 it works.
I've also tried tcpdump for ppp0 but ended up with nothing, I got ouput when I used ping but not ssh. There is no configuration problem with my router, I don't have any iptables-rules set up and I have looked in hosts_allow and hosts_deny.
My routes:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
188.126.80.0 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
80.67.2.69 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
80.67.2.68 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
80.67.2.70 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Just to clarify:
laptop ssh -> server local ip: works
laptop ssh -> server external ip (eth0): works
laptop ssh -> server external ip (ppp0): doesn't work
server ssh -> server external ip (ppp0): works
Would really appreciate some help!
So far I've set up the connection and made a script for ip-up that adds a route for it.
route add default dev ppp0
This works without any problem and all my traffic gets routed through the pptp-connection.
My problem is that I can't ssh to the server when the pptp-connection is enabled. I can ssh to the servers local and external ip when it's not using it, but when I use it I can't ssh to the external ip. I can ping the external ip but when I try to ssh I just get a time out.
ssh -v <myuser>@<external ip for ppp0> just outputs that it times out. I've tried to connect from another remote linux server as well. If I ssh to the local ip and connects to the server from the server itself using the external ip for ppp0 it works.
I've also tried tcpdump for ppp0 but ended up with nothing, I got ouput when I used ping but not ssh. There is no configuration problem with my router, I don't have any iptables-rules set up and I have looked in hosts_allow and hosts_deny.
My routes:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
188.126.80.0 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
80.67.2.69 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
80.67.2.68 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
80.67.2.70 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Just to clarify:
laptop ssh -> server local ip: works
laptop ssh -> server external ip (eth0): works
laptop ssh -> server external ip (ppp0): doesn't work
server ssh -> server external ip (ppp0): works
Would really appreciate some help!