Showing posts with label security. Show all posts
Showing posts with label security. Show all posts

Saturday, December 29, 2018

IPFW stateful firewall written for FreeBSD

IPFW is a stateful firewall written for FreeBSD.

# ee /etc/rc.conf
/etc/rc.conf
. . .
nginx_enable="YES"
firewall_enable="YES"
firewall_type="workstation"
firewall_myservices="22/tcp 80/tcp"
firewall_allowservices="any"
For the first time to run the server (in csh or tcsh shells, freeBSD)
# nohup service ipfw start >&/tmp/ipfw.log

Stop, start and restart the ipfw service.
# sudo service ipfw stop
# sudo service ipfw start
# sudo service ipfw restart

Thursday, December 27, 2018

Port block!! Checkpoint in firewalls

Nginx
# ee /usr/local/etc/nginx/nginx.conf

IPFW
# ee /etc/rc.conf

AWS - Security Group
Enable ports

Reload:
# service nginx reload
# service ipfw restart

Related article: Install Nginx on freeBSD