Difference between revisions of "Iptables - general"
From MyWiki
(Created page with "Allow incoming ports :<br> iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT<br> iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT<br>") |
|||
Line 2: | Line 2: | ||
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT<br> | iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT<br> | ||
iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT<br> | iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT<br> | ||
+ | |||
+ | Incoming ports for samba : | ||
+ | <source lang="text"> | ||
+ | netbios-ns – 137/tcp # NETBIOS Name Service | ||
+ | netbios-dgm – 138/tcp # NETBIOS Datagram Service | ||
+ | netbios-ssn – 139/tcp # NETBIOS session service | ||
+ | microsoft-ds – 445/tcp # if you are using Active Directory | ||
+ | |||
+ | </source> |
Revision as of 15:40, 18 July 2016
Allow incoming ports :
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
Incoming ports for samba :
netbios-ns – 137/tcp # NETBIOS Name Service netbios-dgm – 138/tcp # NETBIOS Datagram Service netbios-ssn – 139/tcp # NETBIOS session service microsoft-ds – 445/tcp # if you are using Active Directory