I have added
but when I hit myserver:82 the page doesn't load. To confirm the server is running I did
and
Which means port 80 is running, but my firewall is blocking it. I can confirm I added the port 82 in the firewall with
How do I open the port in FreeBSD ?
Code:
allow tcp from any to me dst-port 82 in via em0
Code:
# netstat -an | grep 82
tcp4 0 0 *.82 *.* LISTEN
Code:
# sockstat -L4p 82
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
www nginx 62583 9 tcp4 *:82 *:*
www nginx 62582 9 tcp4 *:82 *:*
www nginx 62581 9 tcp4 *:82 *:*
www nginx 62580 9 tcp4 *:82 *:*
root nginx 62579 9 tcp4 *:82 *:*
Code:
# ipfw list
00010 allow ip from any to any via lo0
00020 allow tcp from me to any out setup keep-state
00021 allow ip from me to any out
05000 allow udp from any to me dst-port 25 in via em0
05000 allow udp from any 53 to me in via em0
05001 allow tcp from any to me dst-port 22 in via em0
05001 allow tcp from any to me dst-port 80 in via em0
05001 allow tcp from any to me dst-port 443 in via em0
05001 allow tcp from 168.192.0.100 to me dst-port 3306 in via em0
05010 allow icmp from me to any
05010 allow icmp from any to me
05010 allow ipv6-icmp from me to any
05010 allow ipv6-icmp from any to me
05110 unreach port udp from any to me dst-port 33435-33524
65000 deny log logamount 100 ip from any to any
65100 allow tcp from any to me dst-port 82 in via em0
65535 allow ip from any to any