title: Adding my current IP to whitelist on iptables?
body: <p>I'm pretty new to setting up game server but I want to block rcon to every ip except the ones that are whitelisted.</p>
  
  <p>First I'm gonna use this trhough SSH:</p>
  
  <pre><code>iptables -A INPUT -p tcp --destination-port 27015 -j LOG --log-prefix "SRCDS-RCON " -m limit --limit 1/m --limit-burst 1
  iptables -A INPUT -p tcp --destination-port 27015 -j DROP
  </code></pre>
  
  <p>After that I want that when a user runs a bash script or something similar, it detects the user IP and add it to the whitelist automatically.</p>
  
  <p>How can I do this?</p>