Find the answer to your Linux question:
Results 1 to 2 of 2
I want to block https (port 443) traffic for my LAN users using iptables, please guide? I am using RedHat 9. Thank you,...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    4

    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
    Location
    Texas
    Posts
    1,692
    The rule inserted into the OUTPUT chain would look something like:
    Code:
    # 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
  •