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?
Neil BrookesIT DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nociSoftware EngineerCommented:
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).
0
Neil BrookesIT DeveloperAuthor Commented:
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.
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.
0
nociSoftware EngineerCommented:
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)
0
Neil BrookesIT DeveloperAuthor Commented:
Problem found to be the server was listening on the wrong gateway. Have now corrected in the Debian terminal and this now allows access to the website held on the browser via a web browser as intended.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.