Hi all, I have a strange situation. I have a machine connected to an AT&T VPN. Sometimes the VPN gets disconnected, so I create a cronjob to restart the VPN client when it happens: Problem is: sshd seem doesn't want to bind to tun0. I restart ssh, network, no good. Anyone has any clue? So strange. Thank you.
On Wed, 2009-02-11 at 11:25 +0800, Fajar Priyanto wrote:
Hi all, I have a strange situation. I have a machine connected to an AT&T VPN. Sometimes the VPN gets disconnected, so I create a cronjob to restart the VPN client when it happens: Problem is: sshd seem doesn't want to bind to tun0. I restart ssh, network, no good. Anyone has any clue? So strange. Thank you.
Are you specifying the ListenAddress in /etc/sshd/sshd_config? The default is to bind using a wild card which should pick up any interface. What does your output from "netstat -l" look like? On my vpn server, the listen for ssh looks like this:
Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:ssh *:* LISTEN
Nataraj
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, Feb 11, 2009 at 11:58 AM, Nataraj incoming-centos@rjl.com wrote:
Are you specifying the ListenAddress in /etc/sshd/sshd_config? The default is to bind using a wild card which should pick up any interface. What does your output from "netstat -l" look like? On my vpn server, the listen for ssh looks like this:
Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:ssh *:* LISTEN
Hi Nataraj, sshd is not specified to listen on certain address, I assume it means it listen to all address and inteface, right? I have this from netstat -patune: tcp 0 0 :::22 :::* LISTEN 0
Well, AT FIRST, sshd listens on tun0. It is AFTER tun0 is RESTARTED that sshd refuses to bind to tun0.
On Wed, 2009-02-11 at 12:14 +0800, Fajar Priyanto wrote:
On Wed, Feb 11, 2009 at 11:58 AM, Nataraj incoming-centos@rjl.com wrote:
Are you specifying the ListenAddress in /etc/sshd/sshd_config? The default is to bind using a wild card which should pick up any interface. What does your output from "netstat -l" look like? On my vpn server, the listen for ssh looks like this:
Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:ssh *:* LISTEN
Hi Nataraj, sshd is not specified to listen on certain address, I assume it means it listen to all address and inteface, right? I have this from netstat -patune: tcp 0 0 :::22 :::* LISTEN 0
Well, AT FIRST, sshd listens on tun0. It is AFTER tun0 is RESTARTED that sshd refuses to bind to tun0.
That listen looks like IPV6. Is that what your using?
Nataraj
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, Feb 11, 2009 at 12:56 PM, Nataraj incoming-centos@rjl.com wrote:
Well, AT FIRST, sshd listens on tun0. It is AFTER tun0 is RESTARTED that sshd refuses to bind to tun0.
That listen looks like IPV6. Is that what your using?
Oh, you mean it should be like this: 0.0.0.0:22 0.0.0.0:* I don't have that... hmm.. ok I now add: ListenAddress 0.0.0.0, and now I have that in netstat. Let's see what happens. Thank you Nataraj