Link to home
Start Free TrialLog in
Avatar of Neil Brookes
Neil BrookesFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Debian server visibility outside of a remote desktop

I am working on a Debian system at a sister company, and have a VPN set up between the 2 sites. I am able to Remote Desktop onto any of their other servers, but no their Debian server. I am able to access the IP address for the Bebian system through a browser on any of their network boxes, but cannot access from outside.

The only way I'm able to access the Debian box is to RDP onto any other server within their system, and then RDP from there to the Debain system. Doing this way though prevents me from sending files as I am unale to SSh or PFTP to the Debian box form my VMWAre testing system's Command Terminal, which I have been using throughout previously.

In the past I found a command that was entered into the Debian terminal through RDP that opened up a port on the box, that since then enabled access, but following a recent server reboot, the connection has once again been lost.

Is there a command that will sort this problem, when entered into the Command Terminal of the debian box whilst RDP'd onto it?
Avatar of noci
noci

You probably did open up a port, but didn't save  the results.

If you use the command to open the port again and then use:
service iptables save

on more recent system YMMV, systemd introduces more issues how to filter and resolve... So more info is needed here on the setup of your debian box. (version, type of firewall used (iptables, or other).
Avatar of Neil Brookes

ASKER

It seems iptables isn't present on the server, typing iptables brings back: bash: iptables: command not found, and trying sudo iptables returns: iptables v1.4.14: no command specified Try 'iptables -h' or 'iptables --help' for more information.
I can ip link and get a response, but unable to copy and past into here as the connection I have will not allow.
If there's no iptables, there still may be some other firewall running.

Install iptables + try something like iptables -nL to dump all Kernel rules.

Or nft list ruleset if they're using NFT.
iptables command would only run from the "root" commandline.

after sudo use:
iptables -nv -L
or
iptables-save   #to get it all (nat, mangle, filter)
ASKER CERTIFIED SOLUTION
Avatar of Neil Brookes
Neil Brookes
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial