A
A
Alexander2021-07-27 14:02:14
linux
Alexander, 2021-07-27 14:02:14

How to open a port on Linux Manjaro?

I want to open a port to launch a game server, on Windows I managed to open a port through the torrent settings and therefore I am sure that it can be opened using a computer without going into the router settings. On Linux, I tried to open it using iptables, but when checking the port on the 2ip site, it says "Port closed". Already the entire Runet and YouTube have climbed and have not found a solution to this problem. I hope for the great thinkers of this forum :))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
unseriously, 2021-07-27
@unseriously

iptables -A INPUT -s 5.5.5.5/32 -p tcp --dport 22 -j ACCEPT

open port 22 from IP address 5.5.5.5

S
Sand, 2021-07-27
@sand3001

As far as I understand, what you need is not iptables. You are talking about UPnP, and you need to dig towards the upnp client for your operating system. For example miniupnpc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question