Hi ! I have a Linux box connected to MTNL triband by D-Link Dsl 502 router. The triband connection also has a Live ip. my query is:
1.) I have opened the iptables for ssh port 22, on the linux box but still cannot get to thru from outside. I have connected the router in bridge mode. Please suggest changes required in the router to enable SSH. Thanks
Hozefa.
On 1/12/07, Hozefa Motiwala hozefa.motiwala@gmail.com wrote:
The triband connection also has a Live ip. my query is:
1.) I have opened the iptables for ssh port 22, on the linux box but still cannot get to thru from outside.
Check if 22 is visible from outside with this site:
You'll need your public IP for this. If not then use an alternate port for ssh that is not blocked.
Regards,
On Friday 12 January 2007 18:21, Hozefa Motiwala wrote:
Hi ! I have a Linux box connected to MTNL triband by D-Link Dsl 502 router. The triband connection also has a Live ip. my query is:
1.) I have opened the iptables for ssh port 22, on the linux box but still cannot get to thru from outside. I have connected the router in bridge mode. Please suggest changes required in the router to enable SSH. Thanks
You needn't have to do any configuration on the router if its in bridged mode. Are you sure that its working in the bridged mode and the public IP ( 59.83.xxx.xxx ) is getting assigned to your ethernet interface? ( ethX ) ? Check it out first.
Next, you need to check out if ssh is listening on your ethernet interface or not. For that you'll need to check out sshd's config file. Sometimes with multiple interfaces, sshd listens only on a particular interface and thats where the problem begins.
Also, you needn't use the bridged mode for opening up ssh service to the outside world. You could use portforwarding ( or in some cases "virtual server" ) to make the sshd available over the internet..
BTW which distro are you using?
You needn't have to do any configuration on the router if its in bridged mode. Are you sure that its working in the bridged mode and the public IP ( 59.83.xxx.xxx ) is getting assigned to your ethernet interface? ( ethX ) ? Check it out first.
Yes ,the router is configured in Bridge mode and the public IP is assigned to the ethernet interface. (eth1)
Next, you need to check out if ssh is listening on your ethernet
interface or not. For that you'll need to check out sshd's config file. Sometimes with multiple interfaces, sshd listens only on a particular interface and thats where the problem begins.
From the local LAN I am able to SSH to this gateway.
Does it imply that sshd is listening to only the local eth0 interface ?
Also, you needn't use the bridged mode for opening up ssh service to the
outside world. You could use portforwarding ( or in some cases "virtual server" ) to make the sshd available over the internet..
BTW which distro are you using?
I am using RH 7.3.
Hozefa
On Monday 15 January 2007 10:27, Hozefa Motiwala wrote:
From the local LAN I am able to SSH to this gateway.
Does it imply that sshd is listening to only the local eth0 interface ?
Yes it might. Just run the command: ssh -ln | grep 22 You should get output as :
tcp 0 0 :::22 :::* LISTEN
This means its listening on all interfaces. In your case it might just show the IP of eth0.
I am using FC5 so a lot has changed but check out your sshd_config ( /etc/ssh/sshd_config ) file or the corresponding file you have on RH 7.3
My file says:
ListenAddress 0.0.0.0
which means it'll listen on all interfaces.
See what your file says and if required make the appropriate changes.