iptables: Samba

Ports that Samba uses Samba uses NetBIOS ports 137,138 udp and 139 tcp. It also uses port 445 for SMB file sharing without NetBIOS. Sample iptables rules for Samba: SAMBA_SERVER=”192.168.1.100″ NETWORK=”192.168.1.0/24″ BROADCAST=”192.168.255.255″ iptables -A INPUT[…]

Continue reading …

iptables allow ssh and http

Allow web and ssh connections SSH and web both require out going messages on established tcp connections. iptables -A OUTPUT -o eth0 -m state –state ESTABLISHED,RELATED -j ACCEPT Then you need to allow incomming connections[…]

Continue reading …