Find the answer to your Linux question:
Results 1 to 2 of 2
hi, i have a red hat intalled in one of our pc served as our internet gateway, i just want to ask how can i open the firewall or add ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    wes
    wes is offline
    Just Joined!
    Join Date
    Nov 2004
    Posts
    9

    please help about firewall


    hi,
    i have a red hat intalled in one of our pc served as our internet gateway, i just want to ask how can i open the firewall or add my ip address to the firewall.
    i dont know exactly where to go ..
    thanks

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2002
    Location
    San Antonio
    Posts
    621
    The program that your gateway uses as it's firewall is probably 'iptables'. If you run
    Code:
    /sbin/iptables -L -n
    you should be able to see exactly what it is blocking or not blocking. You can then run something like
    Code:
    /sbin/iptables -I INPUT -p tcp -s 123.45.67.89 --destination-port 22 -j ACCEPT
    to allow the IP 123.45.67.89 to connect to the gateway on port 22.

    Best,

    Samuel
    I respectfully decline the invitation to join your delusion.

Posting Permissions

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