From: "Gáspár Lajos" <swifty@freemail.hu>
To: Marco Nicoloso <nicolm@gmail.com>
Cc: netfilter@lists.netfilter.org, "Gáspár Lajos" <swifty@freemail.hu>
Subject: Re: Cannot go out the firewall
Date: Thu, 26 Oct 2006 12:15:03 +0200 [thread overview]
Message-ID: <45408AA7.5050106@freemail.hu> (raw)
In-Reply-To: <e8c943190610260255o8496543w731c103623050d10@mail.gmail.com>
Marco Nicoloso írta:
>> iptables -vnL
>
> 0 0 DROP all -f * * 0.0.0.0/0
> 0.0.0.0/0
...
hmmm...
Something wrong with your kernel or iptables...
Or you just entered these command right after your firewall script...
The counts of packets in the chains should be mostly more than 0 ! :)
>> iptables -vnL -t nat
> iptables: Table does not exist (do you need to insmod?)
Well...
You need it.
In this command:
iptables -t nat -A POSTROUTING -o eth1 -s 192.168.7.0/24 -j SNAT --to
81.xx.xxx.xxx
Try this in the head of your script:
modprobe ip_conntrack >/dev/null 2>/dev/null
modprobe ip_conntrack_ftp >/dev/null 2>/dev/null
modprobe ip_conntrack_irc >/dev/null 2>/dev/null
modprobe ip_nat >/dev/null 2>/dev/null
modprobe ip_nat_ftp >/dev/null 2>/dev/null
modprobe ip_nat_irc >/dev/null 2>/dev/null
modprobe iptable_filter >/dev/null 2>/dev/null
modprobe iptable_mangle >/dev/null 2>/dev/null
modprobe iptable_nat >/dev/null 2>/dev/null
>> iptables -vnL -t mangle
> iptables: Table does not exist (do you need to insmod?)
>
Not now :) Maybe later... :)
> But modules iptable_nat and iptable_mangle (although, I think,
> iptable_mangle is not necessary for me) are loaded.
>
Are you sure?
> Do I need to create table nat, or it is built-in?
>
It is built-in, but should be loaded if you compiled as a module in you
kernel.
From "man iptables":
If the kernel is
configured with automatic module loading, an attempt
will be made to load the appropriate module for
that table if it is not already there.
Swifty
next prev parent reply other threads:[~2006-10-26 10:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-26 9:23 Cannot go out the firewall Marco Nicoloso
2006-10-26 9:41 ` Gáspár Lajos
2006-10-26 9:55 ` Marco Nicoloso
2006-10-26 10:15 ` Gáspár Lajos [this message]
2006-10-26 17:37 ` Marco Nicoloso
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=45408AA7.5050106@freemail.hu \
--to=swifty@freemail.hu \
--cc=netfilter@lists.netfilter.org \
--cc=nicolm@gmail.com \
/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