What's new

Firewall open port not working

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

chavo

Regular Contributor
I run transmission with port 40000
And add rule to open 40000 port
But port closed

if i disable firewall all works fine
Screenshot from 2021-05-06 14-01-10.png
Screenshot from 2021-05-06 14-01-22.png
 
That is the IPv6 firewall to your LAN devices. Is that really what you want? Is Transmission really running on a server on your LAN and using IPv6 only?
 
Provide more information about your Transmission installation/setup. We can't just keep guessing.
 
WITHOUT FIREWALL

on router
Code:
admin@asus:/tmp/home/root# ncat -l -p 20000
test
^C

connect to router

Code:
root@hz ~ # telnet XX.XX.XX.XX 20000
Trying XX.XX.XX.XX...
Connected to XX.XX.XX.XX.
Escape character is '^]'.
test
Connection closed by foreign host.

WITH FIREWALL

on router
Code:
admin@asus:/tmp/home/root# ncat -l -p 20000

connect to router
Code:
root@hz ~ # telnet XX.XX.XX.XX 20000
Trying XX.XX.XX.XX...

telnet: Unable to connect to remote host: Connection timed out

log

Code:
May  6 15:37:54 kernel: DROP IN=eth0 OUT= MAC= SRC= DST= LEN=60 TOS=0x00 PREC=0x00 TTL=51 ID=62482 DF PROTO=TCP SPT=55396 DPT=20000 SEQ=1915437760 ACK=0 WINDOW=65535 RES=0x00 SYN URGP=0 OPT (020405B40402080A2570116A000000000103030A) MARK=0x8000000

Screenshot from 2021-05-06 15-34-00.png
 
So is the Transmission server running on your router and not on your LAN like I asked you before?

How did you install Transmission? What instructions did you follow?
 
insert manually rule
port is open

Code:
iptables -I INPUT 9 -p tcp --dport 40000 -j ACCEPT

Code:
admin@asus:/tmp/home/root# iptables -L -v -n --line-numbers
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
num   pkts bytes target     prot opt in     out     source               destination         
1     6670  859K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            state RELATED,ESTABLISHED
2        0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0            state INVALID
3      822  123K PTCSRVWAN  all  --  !br0   *       0.0.0.0/0            0.0.0.0/0           
4      109  7331 PTCSRVLAN  all  --  br0    *       0.0.0.0/0            0.0.0.0/0           
5      109  7331 ACCEPT     all  --  br0    *       0.0.0.0/0            0.0.0.0/0            state NEW
6      119 32080 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0            state NEW
7      703 91098 OVPN       all  --  *      *       0.0.0.0/0            0.0.0.0/0            state NEW
8       93 30783 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp spt:67 dpt:68
9       52  2768 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:40000
10       0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           
11     558 57547 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top