Linux Netfilter discussions
 help / color / mirror / Atom feed
* NATTING for a whole network.
@ 2004-12-09 17:22 Irvin, Michael Thad
  2004-12-10 18:56 ` primero@hdr-roma.it
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Irvin, Michael Thad @ 2004-12-09 17:22 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

I'm kinda new at this iptables thing.  I've been running into a problem with
trying to NAT for a class C subnetted class A network...i.e. 10.168.1.0/24.
The syntax I've been using is as follows -- $ipt -t nat -A POSTROUTING -o
$outside -j SNAT -to-source $lan, with the variable $lan = "10.168.1.0/24".
Everytime I've ran the script I get the following error <iptables v.x.x.x
Bad IP Address.  Can anyone please help me with the proper syntax to make
this work?  I've tried various options such the one above, also including
the whole subnetmask  and playing around with different delimitation
options, nothing seems to work.

 

Michael "Thad" Irvin
Lead Analyst - Internet Engineering
Citibank Cards Technology
904.954.2213
michael.irvin@citicorp.com



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

end of thread, other threads:[~2004-12-10 19:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-09 17:22 NATTING for a whole network Irvin, Michael Thad
2004-12-10 18:56 ` primero@hdr-roma.it
2004-12-10 18:58 ` Andreas Grabner
2004-12-10 18:58 ` primero@hdr-roma.it
2004-12-10 18:59 ` Jason Opperisano
2004-12-10 19:02 ` John A. Sullivan III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox