I would like to open up port 3306 on my localhost but only for traffic on my local LAN. How should I go about doing that?

When I check to see if the port is open I get:

$ nmap -p 3306 localhost

Starting Nmap 7.70 ( https://nmap.org ) at 2019-06-13 13:39 CDT
Nmap scan report for localhost (
Host is up (0.00017s latency).
Other addresses for localhost (not scanned): ::1

3306/tcp closed mysql

Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds

You must log in to answer this question.

Browse other questions tagged .