-
-
Save slavajacobson/ebb60b80d83d47965d6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you just change the port or add more ports here, you will likely also | |
# have to change the VirtualHost statement in | |
# /etc/apache2/sites-enabled/000-default.conf | |
Listen 127.0.0.1:80 | |
<IfModule ssl_module> | |
Listen 443 | |
</IfModule> | |
<IfModule mod_gnutls.c> | |
Listen 443 | |
</IfModule> | |
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -ntlp | grep LISTEN | |
(Not all processes could be identified, non-owned process info | |
will not be shown, you would have to be root to see it all.) | |
tcp 0 0 127.0.0.1:5939 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN - | |
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN - | |
tcp 0 0 0.0.0.0:902 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.0.1:747 0.0.0.0:* LISTEN - | |
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN - | |
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN - | |
tcp6 0 0 :::9300 :::* LISTEN - | |
tcp6 0 0 ::1:631 :::* LISTEN - | |
tcp6 0 0 :::445 :::* LISTEN - | |
tcp6 0 0 :::902 :::* LISTEN - | |
tcp6 0 0 :::139 :::* LISTEN - | |
tcp6 0 0 :::111 :::* LISTEN - | |
tcp6 0 0 :::9200 :::* LISTEN - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -I 127.0.0.1 | |
curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables -L | |
Chain INPUT (policy ACCEPT) | |
target prot opt source destination | |
Chain FORWARD (policy ACCEPT) | |
target prot opt source destination | |
ACCEPT tcp -- anywhere xxxxxx.com tcp dpt:http | |
Chain OUTPUT (policy ACCEPT) | |
target prot opt source destination |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment