Skip to content

Instantly share code, notes, and snippets.

@codecakes
Created October 18, 2015 16:33
Show Gist options
  • Save codecakes/30eefaf796eadd00c638 to your computer and use it in GitHub Desktop.
Save codecakes/30eefaf796eadd00c638 to your computer and use it in GitHub Desktop.
Open a Specific server port to a LAN ip
# allow a specific PORT to accept connection from an IP address
iptables -I INPUT -p tcp -s <IP> --dport <PORT> -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment