ping and ssh

December 13, 2011 at 05:01:38
Specs: Linux i686
hi,

I'm new of this forum.

i work with a little lan with debian server and windows/linux clients. the server has 2 network card, 1 for the internal lan and 1 with public ip connected to a modem (with another public ip) for satellite connection.
1. i don't understand why if i ping the server public address and the modem public address from inside the network it's ok, but outside is not possible. it's without answer.
2. the same problem connecting with ssh. i can connect to both public address (server and modem) with ssh from inside the network but not from outside. "connection timed out"

what do you think about it?

thank you


See More: ping and ssh

Report •


#1
December 13, 2011 at 07:27:55
The modem public IP address & the server public IP address have to be the same. How many static IP addresses do you have? In other words, are you paying for 1 or 2?

Side note: We should be calling the public IP addresses external.

How do you know when a politician is lying? His mouth is moving.


Report •

#2
December 13, 2011 at 07:43:51
we have 2 static ip addresses

Report •

#3
December 13, 2011 at 11:33:03
Q1. ISP equipment is configured not to respond to icmp as most likely is your servers firewall

Q2. I am surprised you can connect to either with ssh since ssh have to be configured on them first.

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •

Related Solutions

#4
December 13, 2011 at 12:41:44
If you have two static IP addresses you can't use the second address as an internal IP. That's what you are trying to do.

How do you know when a politician is lying? His mouth is moving.


Report •

#5
December 13, 2011 at 14:18:36
ssh is configured on the server. if i'm client in the lan i can connect to both addresses, the internal server address and the external server address. but trying remote connection goes in time out. maybe i have to check about the firewall also for the ping problem. isn't it?

Report •

#6
December 13, 2011 at 15:11:56
You explained that already & I answered that. You are tying to use an external address as an internal address.

What is the make & model of the modem? How many ports does it have?

How do you know when a politician is lying? His mouth is moving.


Report •

#7
December 13, 2011 at 15:21:38
make sure port 22 which is the ssh port is forwarded to your serves ip. Then you should have access remotely.

Post the results of a ipconfig /all from your server so we are sure of its ip configuration

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •

#8
December 13, 2011 at 15:51:19
It's a Debian server. There is no ipconfig /all command.

It's ifconfig -a

How do you know when a politician is lying? His mouth is moving.


Report •

#9
December 14, 2011 at 00:02:45
first of all thank you.

the modem is linkstar (for satellite) and can't be the same public address of modem and server. this is the original configuration by the provider and it's correct.

sshd is configured for a different port that i know and i use trying the connection ssh. now i'm not on the server. it's in africa and i will be there in january.



Report •

#10
December 14, 2011 at 06:25:52
If that's the case, I hope the modem as some port forwarding capabilities because that's the only way it will work. There is no need to pay for the second address, if it does.

How do you know when a politician is lying? His mouth is moving.


Report •


Ask Question