Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Blocking https port

    I want to block https (port 443) traffic for my LAN users using iptables, please guide? I am using RedHat 9.
    Thank you,

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    The rule inserted into the OUTPUT chain would look something like:
    # iptables -I 1 OUTPUT -p tcp --dport 443 -j REJECT
    I used the REJECT jump target because your LAN users probably won't appreciate a black hole.

    If you're providing nat, you'll need to adjust accordingly.

    P.S. You might want to look into squid as an alternative to restricting http/s traffic via iptables.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts