Firewall - Improvements
Posted: Tue May 26, 2015 8:27 pm
Hi Guys, how are you?
I'm doing the improvements in my firewall and I'd like your opinions about it.
Before, I was working with white list and now, I'm working to setup my firewall to work with black list. Is it correct?
add chain=forward comment="Accept established connections forward" connection-state=established
add chain=forward comment="Accept related connections forward" connection-state=related
add chain=input comment="Accept established connections input" connection-state=established
add chain=input comment="Accept related connections input" connection-state=related
add action=drop chain=input comment="Drop invalid connections input" connection-state=invalid
add action=drop chain=forward comment="Drop invalid connections forward" connection-state=invalid
add chain=input comment="Accept EOIP connection" protocol=gre src-address-list="Internal Network"
add chain=input comment="Accept winbox connection" dst-port=8291 protocol=tcp src-address-list="Internal Network"
add action=drop chain=forward comment="Block Teamviewer connection" dst-address-list="TeamViewer Server DNS"
add chain=input comment="Accept internal ping" limit=50/5s,2 protocol=icmp src-address-list="Internal Network"
add chain=forward comment="Enable HTTP" dst-port=80,8080 protocol=tcp
add chain=forward comment="Enable HTTPS" dst-port=443 protocol=tcp
add chain=forward comment="Enable Exchange Servers" dst-address-list="Exchange Server"
add chain=forward comment="Enable SIP Port." dst-port=5060,5061 protocol=udp src-address-list="Voip Network"
add chain=forward dst-port=10000-20000 protocol=udp
add chain=forward comment="Enable IAX2 Port" dst-port=4569 protocol=udp src-address-list="Voip Network"
add chain=forward comment="Enable VNC" dst-port=5800,5900 protocol=tcp
add chain=forward comment="Enable POP and SMTP" dst-port=587,110,995 protocol=tcp
add chain=forward comment="Enable databases, SQL and MYSQL" dst-port=1433,1533,3306 protocol=tcp
add action=drop chain=forward comment="Drop forward connection"
add action=drop chain=input comment="Drop input connection" in-interface=ether1-gateway
I'm doing the improvements in my firewall and I'd like your opinions about it.
Before, I was working with white list and now, I'm working to setup my firewall to work with black list. Is it correct?
add chain=forward comment="Accept established connections forward" connection-state=established
add chain=forward comment="Accept related connections forward" connection-state=related
add chain=input comment="Accept established connections input" connection-state=established
add chain=input comment="Accept related connections input" connection-state=related
add action=drop chain=input comment="Drop invalid connections input" connection-state=invalid
add action=drop chain=forward comment="Drop invalid connections forward" connection-state=invalid
add chain=input comment="Accept EOIP connection" protocol=gre src-address-list="Internal Network"
add chain=input comment="Accept winbox connection" dst-port=8291 protocol=tcp src-address-list="Internal Network"
add action=drop chain=forward comment="Block Teamviewer connection" dst-address-list="TeamViewer Server DNS"
add chain=input comment="Accept internal ping" limit=50/5s,2 protocol=icmp src-address-list="Internal Network"
add chain=forward comment="Enable HTTP" dst-port=80,8080 protocol=tcp
add chain=forward comment="Enable HTTPS" dst-port=443 protocol=tcp
add chain=forward comment="Enable Exchange Servers" dst-address-list="Exchange Server"
add chain=forward comment="Enable SIP Port." dst-port=5060,5061 protocol=udp src-address-list="Voip Network"
add chain=forward dst-port=10000-20000 protocol=udp
add chain=forward comment="Enable IAX2 Port" dst-port=4569 protocol=udp src-address-list="Voip Network"
add chain=forward comment="Enable VNC" dst-port=5800,5900 protocol=tcp
add chain=forward comment="Enable POP and SMTP" dst-port=587,110,995 protocol=tcp
add chain=forward comment="Enable databases, SQL and MYSQL" dst-port=1433,1533,3306 protocol=tcp
add action=drop chain=forward comment="Drop forward connection"
add action=drop chain=input comment="Drop input connection" in-interface=ether1-gateway