iptables

JD jd1008 at gmail.com
Sat Dec 8 19:20:15 UTC 2012


On 12/08/2012 10:29 AM, Tom H wrote:
> On Sat, Dec 8, 2012 at 10:26 AM, JD <jd1008 at gmail.com> wrote:
>> On 12/08/2012 06:12 AM, Tom H wrote:
>>> The default gateway should be provided by dhclient.
>>>
>> Except, when I configured  my interfaces, I use manual and
>> not dhcp because all the other machines' scripts are coded
>> to talk to this machine using pre-specified IP addresses.
>>
>> During configuration, I specify the ip addresses of the machine,
>> the netmask, the gateway and the dns server and the search domain.
>> I do this for both the wireless and the wired.
>>
>> This is also important because the router is programmed to route
>> certain incoming requests on certain ports to the specific IP address
>> of this machine.
> Sorry, I assumed dhcp...
>
> For the upstream dns servers: I've never used NM with dnsmasq,
> resolvconf, and a static ip address! I would've liked to test the
> following before posting but I don't have an Ubuntu box available
> right now. NM runs its own version of dnsmasq and, AFAIK, picks up its
> config from "/etc/NetworkManager/dnsmasq.d/". dnsmasq has a "server="
> configuration option so you could set that to an upstream dns server.
> Make sure that you chmod the file to 0600 or 0700 because NM usually's
> strict about file modes.
>
> For the default gateway: Have you checked the ipv4 settings in the NM
> applet? If you choose static, you have to enter ip address, netmask,
> and *gateway*.
>
Yep. That is how I explained it previously.
The NM applet has all that info init, which is
why I thought it weird that NM decides to
NOT set up the default rout, and not put
the correct nameserver in resolv.conf.
But I will look into
/etc/NetworkManager/dnsmasq.d/
and set the nameserver there correctly.
Thanks for the tip.!!





More information about the ubuntu-users mailing list