Dear sir, Can you consider Rule #4 and #7. I think we could ignore --sport. So we can modify like this:
-A OUTPUT -p udp --dport 67:68 -j ACCEPT
-A OUTPUT -p udp --dport 123 -j ACCEPT
Because source port will be randomed when establish new connection.
What do you think?
Hi Huan,
Yes you're totally right, the --sport is useless here.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Dear sir, Can you consider Rule #4 and #7. I think we could ignore --sport. So we can modify like this:
4: allow outbound DHCP requests
-A OUTPUT -p udp --dport 67:68 -j ACCEPT
7: allow outbound NTP requests
-A OUTPUT -p udp --dport 123 -j ACCEPT
Because source port will be randomed when establish new connection.
What do you think?
Hi Huan,
Yes you're totally right, the --sport is useless here.