1

What is the best approach to secure connection between two devices over the internet (public IP)?

if there is a firewall on my public IP address deny access all incoming connection, can the hacker get access to my server from the internet, or bypass my firewall by any magic exploit or secret technique?

closed as too broad by forest, symcbean, S.L. Barth, CaffeineAddiction, ThoriumBR Jun 18 '18 at 21:22

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    It sounds like you're literally asking "halp how do I network security" which is an incredibly broad question. There is no one best approach for securing a point-to-point connection over a network. And I can't understand your last sentence at all. – forest Jun 12 '18 at 9:18
  • @forest the last sentence is about: if I setup a Linux server on public IP and using iptables firewall rules to deny all incoming connection to my server, can an attacker get access to my Server? – androux Jun 13 '18 at 20:34
1

No one can never ensure you the ultimate safety. The practice you mention though is very good for encrypting an end-to-end connection. Pieces of advice:

  1. Create a strong RSA key for the SSL
  2. If you feel that iptables is not enough, use an external firewall, which will also be able to work as a vpn server and cover your original server behind it. Apart from the general rules, you can also set up IDS and IPS technologies.

  3. Keep your software updated (less magic exploits can occur this way)

  4. Watch out from where do you connect over vpn to your server. Try not to use your certificates over many different, not-trusted computers and networks.

Not the answer you're looking for? Browse other questions tagged or ask your own question.