All of lore.kernel.org
 help / color / mirror / Atom feed
* Nat
@ 2002-09-08 20:43 Mattia Martinello
  2002-09-08 21:00 ` Nat Antony Stone
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Mattia Martinello @ 2002-09-08 20:43 UTC (permalink / raw)
  To: netfilter

Hi.

I wish to create a nat with masquerading to allow my LAN to access to 
Internet.
I have two LANs: 192.168.1.x and 192.168.2.x. The server wich will make 
the masquerading has both two LANs with two ethernet card.
How I can allow only one LAN to access Internet with ppp0 on the server?
I tried these lines, but it doesn't work:

iptables -t nat -F POSTROUTING
iptables -t nat -A POSTROUTING -j DROP
iptables -t nat -A POSTROUTING -s 192.168.1.0/255.255.255.0 -o ppp0 -j 
MASQUERADE

What I can do?

Thank you very much
Bye
Mattia Martinello



^ permalink raw reply	[flat|nested] 15+ messages in thread
* NAT
@ 2007-07-03  6:52 Martin Schiøtz
  2007-07-03  7:27 ` NAT Grant Taylor
  0 siblings, 1 reply; 15+ messages in thread
From: Martin Schiøtz @ 2007-07-03  6:52 UTC (permalink / raw)
  To: netfilter

Hi

I'm going to setup a bridged NAT linux box for many users. I want one
outside IP address to serve for instance 10.0.0.0/22.

I want to be sure that each local IP address always has 1024 NAT
sessions available and that sessions is kept even if the timeout is
reached. If 1024 sessions is reached and a new session is being
established then it will take over the oldest (timed out) session.

Is this possible with iptables?

- Martin


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Nat
@ 2004-06-06 17:36 mafioso1823
  2004-06-07  7:38 ` Nat Antony Stone
  0 siblings, 1 reply; 15+ messages in thread
From: mafioso1823 @ 2004-06-06 17:36 UTC (permalink / raw)
  To: netfilter

I am very new to iptables and i wanted to know how would i do a hide nat and
a static nat? Any help is very much appreciated.



^ permalink raw reply	[flat|nested] 15+ messages in thread
* nat
@ 2003-11-26  5:31 Paul Fontenot
  2003-11-26  6:33 ` nat Daniel Chemko
  0 siblings, 1 reply; 15+ messages in thread
From: Paul Fontenot @ 2003-11-26  5:31 UTC (permalink / raw)
  To: netfilter

Not sure what the ipfilter lingo is for what i want to do so I will
demonstrate with a Cisco PIX ACL.

access-list outside_access_in permit tcp any host 1.1.1.1 eq 3306

There would be a static for the 1.1.1.1 address:

static (inside,outside) 192.168.1.1 1.1.1.1

Where the MySQL server is running on host 192.168.1.1 and that ip is mapped
via a static translation to 1.1.1.1 on the PIX's outside interface.




^ permalink raw reply	[flat|nested] 15+ messages in thread
* NAT
@ 2003-10-01 11:11 tlussnig
  2003-10-03 10:22 ` NAT Harald Welte
  0 siblings, 1 reply; 15+ messages in thread
From: tlussnig @ 2003-10-01 11:11 UTC (permalink / raw)
  To: netfilter

Hi,
i use iproute2 for statical nat.
My Problem is that connect from intern-extern and extern-intern work fine.
But if i try to connect my external ip from an internal box it does not work.

Intern:
1.1.1.10/24 (ssh-server)
Extern:
217.0.0.10 (ssh-server
Gateway:
1.1.1.1
217.0.0.1


1.1.1.10/24--------[1.1.1.1/217.0.0.1](217.0.0.10)-----------Internet

what i can't do it from 1.1.1.10: telnet 217.0.0.10.
Any hint? I can also use iptables to get this point working.

Cu Thomas Luflnig


^ permalink raw reply	[flat|nested] 15+ messages in thread
* nat
@ 2002-06-14  8:29 saied tabandeh
  0 siblings, 0 replies; 15+ messages in thread
From: saied tabandeh @ 2002-06-14  8:29 UTC (permalink / raw)
  To: netfilter

test




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-07-03 14:29 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-08 20:43 Nat Mattia Martinello
2002-09-08 21:00 ` Nat Antony Stone
2002-09-08 21:27 ` Nat R. Sterenborg
2002-09-08 21:49 ` Nat Anders Fugmann
  -- strict thread matches above, loose matches on Subject: below --
2007-07-03  6:52 NAT Martin Schiøtz
2007-07-03  7:27 ` NAT Grant Taylor
2007-07-03  7:55   ` NAT Martin Schiøtz
2007-07-03 14:29     ` NAT Robert LeBlanc
2004-06-06 17:36 Nat mafioso1823
2004-06-07  7:38 ` Nat Antony Stone
2003-11-26  5:31 nat Paul Fontenot
2003-11-26  6:33 ` nat Daniel Chemko
2003-10-01 11:11 NAT tlussnig
2003-10-03 10:22 ` NAT Harald Welte
2002-06-14  8:29 nat saied tabandeh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.