Results 1 to 4 of 4

Thread: Firewall preventing my massurade

  1. #1
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    3,988
    Distro
    Xubuntu 13.04 Raring Ringtail

    Firewall preventing my massurade

    in gufw i need have it allow this to work
    when i enable the firewall this breaks, but i need to keep the some stuff local only so i need the firewall, this worked on 12.04
    Code:
    echo 1 > /proc/sys/net/ipv4/ip_forward
    while [ 0`pidof NetworkManager` -eq 0 ]; do
        sleep 1
    done
    while [ "`ifconfig eth0 | grep 'inet addr:'`" = "" ]; do
        sleep 2
    done
    while [ "`ifconfig eth0:1 | grep 'inet addr:'`" = "" ]; do
        sleep 2
        ifconfig eth0:1 10.0.0.1 netmask 255.255.0.0
    done
    #iptables -t nat -A PREROUTING -o eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.0.0.75:80
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    iptables -P FORWARD ACCEPT
    service isc-dhcp-server start
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included
    I frequently edit my post several times when I have the last post
    Putting your Networked Printer's scanner software to shame PHP Scanner Server

  2. #2
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    3,988
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Firewall preventing my massurade

    i figured out port 80 udp allows the dns server to work
    also seems my script needs to run after the firewall starts
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included
    I frequently edit my post several times when I have the last post
    Putting your Networked Printer's scanner software to shame PHP Scanner Server

  3. #3
    Join Date
    Aug 2008
    Beans
    1,835
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Firewall preventing my massurade

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    i figured out port 80 udp allows the dns server to work
    also seems my script needs to run after the firewall starts

    Odd. DNS should be using udp port 53.

  4. #4
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    3,988
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Firewall preventing my massurade

    for some reason doing that got it working knew dhcp's port was in the 50s
    as long as it works
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included
    I frequently edit my post several times when I have the last post
    Putting your Networked Printer's scanner software to shame PHP Scanner Server

Bookmarks

Posting Permissions

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