Board logo

標題: 請教一下iptables [打印本頁]

作者: mcdull    時間: 2017-5-1 16:01     標題: 請教一下iptables

我正在merlin router起一個shadowsock server, 但怎也連不上.
netstat可以看見,

tcp        0      0 0.0.0.0:8388            0.0.0.0:*               LISTEN

iptables是這樣的.
  1. pkts bytes target     prot opt in     out     source               destination
  2.     0     0 ACCEPT     all  --  tun21  any     anywhere             anywhere
  3.     0     0 ACCEPT     udp  --  any    any     anywhere             anywhere             udp dpt:1194
  4.     0     0 DROP       icmp --  vlan2  any     anywhere             anywhere             icmp echo-request
  5. 2750  297K ACCEPT     all  --  any    any     anywhere             anywhere             state RELATED,ESTABLISHED
  6.     4   254 DROP       all  --  any    any     anywhere             anywhere             state INVALID
  7.   485 53238 ACCEPT     all  --  br0    any     anywhere             anywhere             state NEW
  8.   973  237K ACCEPT     all  --  lo     any     anywhere             anywhere             state NEW
  9.     0     0 ACCEPT     udp  --  any    any     anywhere             anywhere             udp spt:bootps dpt:bootpc
  10.     3   144 SSHBFP     tcp  --  vlan2  any     anywhere             anywhere             tcp dpt:ssh state NEW
  11.     0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp !echo-request
  12.     0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere             tcp dpt:1723
  13.     0     0 ACCEPT     gre  --  any    any     anywhere             anywhere
  14.    70  4015 DROP       all  --  any    any     anywhere             anywhere
  15.     0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere             tcp dpt:8388
複製代碼
但用internet port tester, 都係話 8388 呢個port 係close既....
作者: mcdull    時間: 2017-5-1 17:26

It seems to me that the drop all rule is executed and the last accept rule is being ignored.  However, in the firmware, I am only allowed to edit the "firewall-start" custom script for my own rule, can't imagine how it can be implemented.





歡迎光臨 電腦領域 HKEPC Hardware (https://www.hkepc.com/forum/) Powered by Discuz! 7.2