Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

System and Network configuration • Re: iptables and connection limit

$
0
0

Code:

# ss -tuplnNetid   State    Recv-Q   Send-Q     Local Address:Port      Peer Address:Port   Process                              udp     UNCONN   0        0                0.0.0.0:68             0.0.0.0:*       users:(("dhclient",pid=495,fd=7))   udp     UNCONN   0        0                0.0.0.0:68             0.0.0.0:*       users:(("dhclient",pid=494,fd=7))   tcp     LISTEN   0        128              0.0.0.0:22             0.0.0.0:*       users:(("sshd",pid=599,fd=3))       tcp     LISTEN   0        4096           127.0.0.1:9050           0.0.0.0:*       users:(("tor",pid=604,fd=6))        tcp     LISTEN   0        128                 [::]:22                [::]:*       users:(("sshd",pid=599,fd=4))       tcp     LISTEN   0        4096                   *:7070                 *:*       users:(("v2ray",pid=683,fd=7))    
What is your opinion?
No connection installed.

Code:

# iptables -LChain INPUT (policy ACCEPT)target     prot opt source               destination         REJECT     tcp  --  anywhere             anywhere             tcp dpt:7070 flags:FIN,SYN,RST,ACK/SYN #conn dst/32 > 1 reject-with icmp-port-unreachableChain FORWARD (policy ACCEPT)target     prot opt source               destination         Chain OUTPUT (policy ACCEPT)target     prot opt source               destination         
What is your opinion?
REJECT TCP traffic from ANYWHERE to ANYWHERE through port 7070 with reason ICMP-PORT-UNREACHABLE

Statistics: Posted by C4H7Cl2O4P — 2024-02-18 11:42



Viewing all articles
Browse latest Browse all 2901

Trending Articles