Networking Forums

Networking Forums > Computer Networking > Linux Networking > NetFiletr NAT not working /Debian

Reply
Thread Tools Display Modes

NetFiletr NAT not working /Debian

 
 
Guillaume Riviere
Guest
Posts: n/a

 
      05-15-2004, 02:32 AM
Dear all Free Software User,

I try to install a gateway for my LAN with a external 5 @IP's
(arriving on a ethernet link). first i just want nat all internal
adress to one external (1.2.3.153)

my LAN is 10.2.8.0/24
my WAN is 1.2.3.153 -> 1.2.3.157 with a external gateway 1.2.3.158

my linux bix is configure like this:

eth0 10.2.8.1
eth1 1.2.3.153

All NetFilter are insinde the kernel (Directly, no Module)
All TCP/IP and advance router are insinde the Kernel (except fast
network adresse translation)


it add the Nat rule:
> iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 1.2.3.153

it's ok, i see it with iptable -t nat -nL

I see all my route on the debian box (internal, external, external
gateway for all)

my netfilter table is the default (ACCEPT for INPUT,OUTPUT,FORWARD)

my /etc/network/options set the ip forwarding to yes


I can ping all external (www also), internal network from my debian
box

I can ping my LAN from a computer inside my LAN (10.2.8.2 with a
gateway to 10.2.8.1)

But when I try to ping external network from my internal computer:
ping 1.2.3.153 or ping 1.2.3.154:
connect: Network unreachable

So my nat is not working,

Do I miss something ?

Thanks for your help,
Guillaume
 
Reply With Quote
 
 
 
 
Guillaume Riviere
Guest
Posts: n/a

 
      05-18-2004, 01:48 AM
OK, I finally solve my problem:
This is my client (inside LAN), Gateway not configured ...
Sorry for the noise,

Guillaume

(E-Mail Removed) (Guillaume Riviere) wrote in message news:<(E-Mail Removed). com>...
> Dear all Free Software User,
>
> I try to install a gateway for my LAN with a external 5 @IP's
> (arriving on a ethernet link). first i just want nat all internal
> adress to one external (1.2.3.153)
>
> my LAN is 10.2.8.0/24
> my WAN is 1.2.3.153 -> 1.2.3.157 with a external gateway 1.2.3.158
>
> my linux bix is configure like this:
>
> eth0 10.2.8.1
> eth1 1.2.3.153
>
> All NetFilter are insinde the kernel (Directly, no Module)
> All TCP/IP and advance router are insinde the Kernel (except fast
> network adresse translation)
>
>
> it add the Nat rule:
> > iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 1.2.3.153

> it's ok, i see it with iptable -t nat -nL
>
> I see all my route on the debian box (internal, external, external
> gateway for all)
>
> my netfilter table is the default (ACCEPT for INPUT,OUTPUT,FORWARD)
>
> my /etc/network/options set the ip forwarding to yes
>
>
> I can ping all external (www also), internal network from my debian
> box
>
> I can ping my LAN from a computer inside my LAN (10.2.8.2 with a
> gateway to 10.2.8.1)
>
> But when I try to ping external network from my internal computer:
> ping 1.2.3.153 or ping 1.2.3.154:
> connect: Network unreachable
>
> So my nat is not working,
>
> Do I miss something ?
>
> Thanks for your help,
> Guillaume

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting a RT2870/RT3070 working under Debian Squeeze M. S. Linux Networking 2 02-01-2012 12:41 AM
debian [testing/etch] redirected broadcasts not working mabra Linux Networking 2 02-19-2007 05:59 AM
Debian - [DEBIAN] Stop telnet permanently? universalbitmapper Linux Networking 2 06-06-2006 10:41 AM
Trying to get Intel PRO/Wireless 2200BG working with Debian 3.1 j_mckitrick@bigfoot.com Linux Networking 3 12-21-2005 07:22 PM
LinkSys NIC not working in A7V133 motherboard (Debian, Fedora, Knoppix) H. S. Linux Networking 0 04-20-2004 05:50 AM



1 2 3 4 5 6 7 8 9 10 11