Results 1 to 10 of 13

Thread: Help with initial network setup for linux server in windows group

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Beans
    10

    Re: Help with initial network setup for linux server in windows group

    After some help from dnsmasq mlist, turns out I need to remove "named" which I found out is from bind9 package so I removed that, and dnsmasq starts up normally now.

    Internet connectivity solved thanks to http://www.tldp.org/HOWTO/IP-Masquer...-examples.html but since that guide is not for ubuntu I had to do some changes and I'm ignoring some kind of missing LSB information warnings. Oh well, at least its working now.
    Last edited by Shinhan; June 25th, 2010 at 03:53 PM. Reason: solved

  2. #2
    Join Date
    Mar 2009
    Beans
    3

    Re: Help with initial network setup for linux server in windows group

    For starters, IP Forwarding must be enabled:
    Code:
    root@d530001:~# cat /proc/sys/net/ipv4/ip_forward 
    0
    0 = no IP forwarding, 1 = IP forwarding.
    To enable it:
    Code:
    sysctl -w net.ipv4.ip_forward=1
    To make sure your routing is active when rebooting, edit /etc/sysctl.conf
    look for and replace:
    Code:
    net.ipv4.ip_forward = 1
    I believe you may have forgotten the following rules:
    Code:
    iptables --append FORWARD --in-interface eth0 -j ACCEPT
    iptables --append FORWARD --in-interface eth1 -j ACCEPT

    And you may want to read up on iptables...

    INPUT is for any inbound traffic on the interface
    OUTPUT is for any outbound traffic on the interface
    FORWARD if for any traffic routed by the machine

    So your INPUT statement is only for traffic on the machine itself.

    Have a look at this page: http://www.howtoforge.com/nat_iptables
    Will.

  3. #3
    Join Date
    Dec 2009
    Beans
    10

    Re: Help with initial network setup for linux server in windows group

    First I'm really thankful for that sysctl bit, the

    Code:
    echo "1" > /proc/sys/net/ipv4/ip_forward
    that I was told by others works but looks like an ugly hack and I'm glad I know the proper way to enable ip forwarding.

    Sorry I edited my previous message, should've refreshed but didnt so I didnt notice your reply.
    The internet is working now, and like I mentioned in edit I used http://www.tldp.org/HOWTO/IP-Masquer...-examples.html. Since thats not for ubuntu I had to make some changes (I also removed the ip_forwarding thanks to you tip just now), and now after doing

    Code:
    update-rc.d firewall-iptables defaults
    looks like everything should work after restart. I just get missing LSB information warning.

Tags for this Thread

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
  •