Results 1 to 4 of 4

Thread: Can not install ipmasq in ubuntu 9.10

  1. #1
    Join Date
    Apr 2006
    Beans
    45

    Can not install ipmasq in ubuntu 9.10

    I can not install ipmasq in ubuntu 9.10. This is what I get:

    root@amd:~# apt-get install ipmasq
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package ipmasq is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package ipmasq has no installation candidate

    I need ipmasq for internet connection sharing...

    Can some one please help.

    Thanks

  2. #2
    Join Date
    Aug 2008
    Beans
    488

    Re: Can not install ipmasq in ubuntu 9.10

    you don't need the ipmasq program to share the internet, it is last updated "Feb 19, 2000"

    instead you can set the masquerade rule like below (replace eth0 by your internet interface) and enable forwarding in the kernel

    Code:
    sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    sudo iptables-save
    sudo sysctl -w net.ipv4.conf.all.forwarding=1

  3. #3
    Join Date
    Apr 2006
    Beans
    45

    Re: Can not install ipmasq in ubuntu 9.10

    Still don't have internet on the other pc...
    The ubuntu pc is connected to the internet via eth1. The other pc (windows xp) is connected to ubuntu pc via eth0. Ping between both PCs is ok.
    I also tried to have ICS with firestarter but that also did not work.

    This is the log:

    tuga@amd:~$ sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
    [sudo] password for tuga:
    tuga@amd:~$ sudo iptables-save
    # Generated by iptables-save v1.4.4 on Sun Nov 1 12:47:08 2009
    *nat
    REROUTING ACCEPT [16:4963]
    OSTROUTING ACCEPT [1:44]
    :OUTPUT ACCEPT [91:5666]
    -A POSTROUTING -o eth1 -j MASQUERADE
    -A POSTROUTING -o eth1 -j MASQUERADE
    COMMIT
    # Completed on Sun Nov 1 12:47:08 2009
    # Generated by iptables-save v1.4.4 on Sun Nov 1 12:47:08 2009
    *filter
    :INPUT DROP [0:0]
    :FORWARD DROP [0:0]
    :OUTPUT DROP [0:0]
    :INBOUND - [0:0]
    :LOG_FILTER - [0:0]
    :LSI - [0:0]
    :LSO - [0:0]
    :OUTBOUND - [0:0]
    -A INPUT -s 212.113.164.18/32 -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
    -A INPUT -s 212.113.164.18/32 -p udp -j ACCEPT
    -A INPUT -s 212.113.164.17/32 -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
    -A INPUT -s 212.113.164.17/32 -p udp -j ACCEPT
    -A INPUT -i lo -j ACCEPT
    -A INPUT -p icmp -m limit --limit 10/sec -j ACCEPT
    -A INPUT -d 255.255.255.255/32 -i eth1 -j DROP
    -A INPUT -d 89.155.79.255/32 -j DROP
    -A INPUT -s 224.0.0.0/8 -j DROP
    -A INPUT -d 224.0.0.0/8 -j DROP
    -A INPUT -s 255.255.255.255/32 -j DROP
    -A INPUT -d 0.0.0.0/32 -j DROP
    -A INPUT -m state --state INVALID -j DROP
    -A INPUT -f -m limit --limit 10/min -j LSI
    -A INPUT -i eth1 -j INBOUND
    -A INPUT -d 192.168.0.1/32 -i eth0 -j INBOUND
    -A INPUT -d 89.155.68.76/32 -i eth0 -j INBOUND
    -A INPUT -d 192.168.0.255/32 -i eth0 -j INBOUND
    -A INPUT -j LOG_FILTER
    -A INPUT -j LOG --log-prefix "Unknown Input" --log-level 6
    -A FORWARD -p icmp -m limit --limit 10/sec -j ACCEPT
    -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
    -A FORWARD -i eth0 -j OUTBOUND
    -A FORWARD -d 192.168.0.0/24 -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A FORWARD -d 192.168.0.0/24 -p udp -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A FORWARD -j LOG_FILTER
    -A FORWARD -j LOG --log-prefix "Unknown Forward" --log-level 6
    -A OUTPUT -s 89.155.68.76/32 -d 212.113.164.18/32 -p tcp -m tcp --dport 53 -j ACCEPT
    -A OUTPUT -s 89.155.68.76/32 -d 212.113.164.18/32 -p udp -m udp --dport 53 -j ACCEPT
    -A OUTPUT -s 89.155.68.76/32 -d 212.113.164.17/32 -p tcp -m tcp --dport 53 -j ACCEPT
    -A OUTPUT -s 89.155.68.76/32 -d 212.113.164.17/32 -p udp -m udp --dport 53 -j ACCEPT
    -A OUTPUT -o lo -j ACCEPT
    -A OUTPUT -s 224.0.0.0/8 -j DROP
    -A OUTPUT -d 224.0.0.0/8 -j DROP
    -A OUTPUT -s 255.255.255.255/32 -j DROP
    -A OUTPUT -d 0.0.0.0/32 -j DROP
    -A OUTPUT -m state --state INVALID -j DROP
    -A OUTPUT -o eth1 -j OUTBOUND
    -A OUTPUT -o eth0 -j OUTBOUND
    -A OUTPUT -j LOG_FILTER
    -A OUTPUT -j LOG --log-prefix "Unknown Output" --log-level 6
    -A INBOUND -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A INBOUND -p udp -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A INBOUND -s 192.168.0.2/32 -j ACCEPT
    -A INBOUND -s 192.168.0.20/32 -j ACCEPT
    -A INBOUND -j LSI
    -A LSI -j LOG_FILTER
    -A LSI -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m limit --limit 1/sec -j LOG --log-prefix "Inbound " --log-level 6
    -A LSI -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j DROP
    -A LSI -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK RST -m limit --limit 1/sec -j LOG --log-prefix "Inbound " --log-level 6
    -A LSI -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK RST -j DROP
    -A LSI -p icmp -m icmp --icmp-type 8 -m limit --limit 1/sec -j LOG --log-prefix "Inbound " --log-level 6
    -A LSI -p icmp -m icmp --icmp-type 8 -j DROP
    -A LSI -m limit --limit 5/sec -j LOG --log-prefix "Inbound " --log-level 6
    -A LSI -j DROP
    -A LSO -j LOG_FILTER
    -A LSO -m limit --limit 5/sec -j LOG --log-prefix "Outbound " --log-level 6
    -A LSO -j REJECT --reject-with icmp-port-unreachable
    -A OUTBOUND -p icmp -j ACCEPT
    -A OUTBOUND -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A OUTBOUND -p udp -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A OUTBOUND -j ACCEPT
    COMMIT
    # Completed on Sun Nov 1 12:47:08 2009
    # Generated by iptables-save v1.4.4 on Sun Nov 1 12:47:08 2009
    *mangle
    REROUTING ACCEPT [452:424399]
    :INPUT ACCEPT [437:423394]
    :FORWARD ACCEPT [15:1005]
    :OUTPUT ACCEPT [362:41262]
    OSTROUTING ACCEPT [358:40209]
    COMMIT
    # Completed on Sun Nov 1 12:47:08 2009
    tuga@amd:~$ sudo sysctl -w net.ipv4.conf.all.forwarding=1
    net.ipv4.conf.all.forwarding = 1

  4. #4
    Join Date
    May 2008
    Location
    St. Louis, Missouri
    Beans
    32
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can not install ipmasq in ubuntu 9.10

    I am having the same problem, friend, as I have not yet been able to successfully activate internet connection sharing on my new karmic 64 bit install. Numerous how-tos include using ipmasq.

    Finally, here is what will work on karmic:

    sudo apt-get install network-config dhcp3-server gufw

    network-config is a hidden gem in the universe repository that is launched from the command line (no menu item appeared at installation.) Also, it is simple and works well for configuring network interfaces (wired or wireless) and internet connection sharing.

    Further, I needed dhcp3-server to assign IP addresses to my internal network (2 other PC in my house, kids and TV room laptop.)
    Details on configuring it are at: https://help.ubuntu.com/community/dhcp3-server
    Last edited by stlouisubntu; December 22nd, 2009 at 07:20 AM. Reason: installing jaunty ipmasq deb on karmic breaks internet connectivity -- bad idea -- removed suggestion

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
  •