A
A
Andrei St2021-02-07 15:37:49
linux
Andrei St, 2021-02-07 15:37:49

How to open ports in Debian?

I bought vds in hatzner to open ports
iptables -t filter -A INPUT -p tcp --dport 19132 -j ACCEPT

When a site connects via rcon to a service, for some reason debian blocks the incoming connection

tcp        1      0 0.0.0.0:19132           0.0.0.0:*               LISTEN      12725/PocketMine-St
tcp       25      0 95.217.219.25:19132     31.31.196.102:41742     CLOSE_WAIT  -
tcp        1      0 95.217.219.25:19132     31.31.196.102:38954     CLOSE_WAIT  12725/PocketMine-St
udp        0      0 0.0.0.0:19132           0.0.0.0:*                           12725/PocketMine-St


Tell me what to do?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2021-02-07
@q2digger

show the output of iptables -L INPUT -vnx

M
MarvinD, 2021-02-08
@MarvinD

And the connection can be blocked by the application on 19132/tcp? Like listen port? You obviously work on ssh. SELinux?

S
SsNipeR1, 2021-02-08
@SsNipeR1

Try ufw, the firewall is like that. sudo apt update && sudo apt install ufw then ufw allow 19132

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question