Unix/Linux Go Back    

Need help for iptables rules


Kindly Note - This is a Single User Post by Forum Member Thomas342 Regarding:
Need help for iptables rules.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 12-30-2016   -   Original Discussion by Thomas342
Thomas342 Thomas342 is offline
Join Date: Dec 2016
Last Activity: 15 August 2017, 6:42 AM EDT
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts

Thanks for your reply.

II see the line for your DSL router or whatever 192... is. What is your goal?
I wanted to make this rule more secure:

iptables -A INPUT -p tcp --dport xxxx -j ACCEPT

My pc is not acting as a router or a server. If I want to open a port (example: for a vpn), what rule do I need?
Normally the rule is:

iptables -A INPUT -p tcp --dport xxxx -j ACCEPT

But this rule is not very secure because if I well understood, it allows everyone to get my tcp port xxx.
What can I do to make the rule more secure? Is it possible?