Results 1 to 4 of 4

Thread: FWbuilder, Iptables and A router

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Posts
    54

    Default FWbuilder, Iptables and A router

    Hi,
    I am trying to open ports using FWbuilder and IPtables on my backtrack machine but when i configure and install my firewall i lose my internet connection and ability to access the admin panel on the router.
    I was wondering if anyone could help me build a firewall for my pc, it only needs to open all ports to/from all destinations but it needs to go through the internet gateway on my D-Link, the router and my PC are connected by my Ethernet port (eth0).
    The router is 192.168.1.1 and i am 192.168.1.25

  2. #2
    Member
    Join Date
    Jan 2007
    Posts
    242

    Default

    http://easyfwgen.morizot.net/gen

    You can easily setup a nat-ip-forwarding firewall for a router here, too.

    You'll need to copy and paste the resulting page into a text editor and save it.
    chmod u+x firewall.sh
    ./firewall.sh
    iptables -L

    I'm not sure exactly what you are trying to do. If you open a port through the firewall on your linux box, you'll be able to access it from the lan. If you want to access it from outside of your network, you need to open the port in your router settings and forward it to the ip of your server. In a stock linksys router, these settings are under "Gaming and Applications". The firewall on the linux box won't care if the connection comes from lan or wan. (Unless you configure it that way )

    If you're going to run outside services, you might want to look into tcp-wrapper, too.

    What did you say your external ip was again? LOL

    http://iptables-tutorial.frozentux.n...-tutorial.html

    At least go through this section

    http://iptables-tutorial.frozentux.n...RCFIREWALLFILE

  3. #3
    Junior Member
    Join Date
    Mar 2007
    Posts
    54

    Default

    Hi, thanks.
    My external ip is 127.0.0.1, telnet to it and run an rm -rf /./ command on it

  4. #4
    Member
    Join Date
    Jan 2007
    Posts
    242

    Default

    My external ip is 127.0.0.1, telnet to it and run an rm -rf /./ command on it
    LOL

    Take a look at /etc/rc.d/rc.Firewall when you get the chance.

    Have Fun

Posting Permissions

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