From: "João Carlos Garcia" <jc.garcia@quintaonda.com.br>
To: netfilter@lists.netfilter.org
Subject: Invalid Argument
Date: Mon, 6 Sep 2004 09:48:04 -0300 [thread overview]
Message-ID: <004701c4940f$c155c320$0800a8c0@supreme> (raw)
Hi,
I´m trying to configure iptables rules, but ...
I´m testing the rules in a separeted environment, but the final topology will be the following
ADSL -- [ LINUX ] -- LOCAL NETWORK
The script look like this
#!/bin/sh
INTIF=eth0
EXTIF=eth1
INTIP=192.168.0.3
EXTIP=172.16.0.3
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
echo 1 > /proc/sys/net/ipv4/conf/eth1/proxy_arp
echo 1 > /proc/sys/net/ipv4/ip_forward
for f in /proc/sys/net/ipv4/conf/*/rp_filter;
do
echo 1 > $f;
done
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
iptables -A INPUT -j DROP
iptables -A FORWARD -j DROP
iptables -A OUTPUT -j DROP
...
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o $EXTIF -j SNAT --to-source $EXTIP
When the script run the last rule ( NAT ), occurs an error : iptables invalid argument.
I want that the iptables change the source IP address ( 192.168 ) to his ip address ( 172.16.0.3 ) to all connection to Internet
Could anyone help me ?
Thanks in advanced
João Carlos
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.745 / Virus Database: 497 - Release Date: 27/8/2004
next reply other threads:[~2004-09-06 12:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-06 12:48 João Carlos Garcia [this message]
2004-09-06 15:58 ` Invalid Argument Jose Maria Lopez
2004-09-06 20:18 ` Jason Opperisano
-- strict thread matches above, loose matches on Subject: below --
2004-07-05 11:59 invalid argument Luis GUSTAVO
2004-07-05 12:24 ` Patrick Leslie Polzer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='004701c4940f$c155c320$0800a8c0@supreme' \
--to=jc.garcia@quintaonda.com.br \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox