iptables and NAT [SOLVED]
Jatin K
ssh.fedora at gmail.com
Fri Jan 28 16:04:40 UTC 2011
On Friday 28 January 2011 04:37 PM, Jorge Fábregas wrote:
> On 01/28/2011 01:11 AM, Jatin K wrote:
>> um target prot opt source destination
>> 2 DNAT all -- 0.0.0.0/0 192.168.131.133 tcp dpt:80 to:192.168.131.131:80
> This line doesn't look right. Is it doing DNAT For the host
> 192.168.131.133 (converting it to 192.168.131.131? This doesn't make
> sense as 192.168.131.133 belongs to your internal network.
>
that is corrected now ...... I came to know littlebit later
>> Chain POSTROUTING (policy ACCEPT)
>> num target prot opt source destination
>> 1 MASQUERADE all -- 192.168.131.131/24 0.0.0.0/0
> 192.168.131.131/24 is incorrect. If it's a particular host it should be
> 192.168.131.131/32 or simply 192.168.131.131. If it's for the network
> then it would be 192.168.131.0/24 (proper way to specify network).
Wow .... that I did not think about .... it must be only one host
192.168.131.131 ... I will correct it
> And again, just like Tim mentioned, you're not firewalling anything.
> At this point you're just basically routing& NATing.
>
> HTH,
> Jorge
Thank you very much Jorge
have a good day
--
°v°
/(_)\
^ ^ Jatin Khatri
Registerd Linux user No #501175
www.counter.li.org
No M$
More information about the users
mailing list