[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Configuring GW to DSL Internet



Didar Hossain wrote:
> On Wed, Jan 6, 2010 at 2:15 PM, Didar Hossain <didar hossain gmail com> wrote:
>   
>> On Wed, Jan 6, 2010 at 1:15 PM, j.halifax . <j halifax seznam cz> wrote:
>>     
>>> Hi All,
>>>
>>> Pleaase help me in configuring FC12_64 as DHCP & FW & GW to ADSL Internet.
>>>
>>> I have:
>>> - eth0 (xxx.39.189.92) connected to one port of the DSL router, eth0 configured with DSN' of ISP
>>> - eth2 (10.255.250.37) connected to the local LAN, eth2 configured with DNS' of ISP
>>> - DNS' of ISP are defined also in resolv.conf
>>> - named is running
>>> - dnsmasq running for eth0 (connected to DSL router port)
>>> - iptables running
>>> - FW has dns ports (53) open
>>> - FW has eth2 (to internal LAN) as trusted interface
>>> - Internet is accessible in that box (via eth0), websites in internal LAN as well (via eth2).
>>>
>>> >From another box in the LAN:
>>>       
>>>> ping 10.255.250.37
>>>>         
>>>    responds normal way
>>>       
>>>> host isp.com 10.255.250.37
>>>>         
>>>   doesn't respond
>>>   (in the 10.255.250.37 box the tcpdump shows requests coming in port 53, but they are not forwarded to superior ISP DNS and SUGHUP1 to dnsmasq reports 0 requests received/answered/failed/retried/sent)
>>>
>>> My question is: What is it incorect in my configuratins?
>>>       
>> Maybe you need to -
>> echo 1 > /proc/sys/net/ipv4/ip_forward
>>
>> and
>>
>> iptable -t nat -A POSTROUTING -s 10.255.250.0/24 -j SNAT --to xxx.39.189.92
>>     
>
> Assuming, you set up 10.255.250.0 as class C - not right, but, people
> do it sometimes.
>
>   
It is perfectly correct to an A-Class network into C-Class subnets.  I
would say it is done more often than not.

-- 
Liberty don't work as good in practice as it does in speeches. -- The
Best of Will Rogers Guess Who! http://tinyurl.com/mc4xe7

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]