Find the answer to your Linux question:
Results 1 to 3 of 3
I have been troubleshooting a mathematical program and I found out through process of elmination that my firewall is blocking the outgoing connections to a local server. So my dumb ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Location
    Key-stone state
    Posts
    59

    Firewall Configuration


    I have been troubleshooting a mathematical program and I found out through process of elmination that my firewall is blocking the outgoing connections to a local server. So my dumb question is how do I tell the firewall on my Fedora 16 machine to allow the outgoing connection?

    Thanks.
    Grimm

  2. #2
    awc
    awc is offline
    Just Joined! awc's Avatar
    Join Date
    Aug 2012
    Location
    North America
    Posts
    40
    Assuming you're not hosting any services

    Code:
    sudo iptables -A OUTPUT -m state --state NEW,ESTABLISHED -j ACCEPT
    sudo iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
    sudo iptables -P OUTPUT DROP
    sudo iptables -P INPUT DROP
    Last edited by awc; 01-26-2013 at 04:30 PM.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,753
    Assuming that your network has a real firewall (hardware or software) other than the one on your system, then I recommend you disable iptables: sudo service iptables stop
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. $spacer_open
    $spacer_close

Posting Permissions

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