Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I guess I need to know a bit more. When you say tcp port, what do you mean exactly? A network adapter port or do you mean only say tcp:5098?
There are plenty of vpn solutions. Some so secure you can't run it on web. In the past, a vpn was total. There were no ways to let any traffic outside of the vpn. Now you can run a vpn on some traffic usually if you have a means to route it. It isn't considered very secure only because it is not totally isolated from other traffic.
I suspect that you could grab that port with some means like iptables. Then you have some choices. Maybe pipe it to a vpn set up on a secondary ip address or might be able to make one nic on vpn and break out of that.
Depending on what exactly you're trying to do, and whether you have ssh access to the destination (or another server sufficiently "close" to the destination), you could use an ssh tunnel or reverse ssh tunnel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.