* iptables : masq
@ 2002-06-13 9:58 Payal
0 siblings, 0 replies; 7+ messages in thread
From: Payal @ 2002-06-13 9:58 UTC (permalink / raw)
To: netfilter
Hi,
As I said earlier I am using Mdk Linux 8.2 with kernel 2.4.18. I am trying to
shift from ipchains to iptables for a simple reson that I cannot connect to
one particular ftp site where ip_masq_ftp was required in earlier versions of
kernel. Now this module is no longer available. So, I have to shift to
iptables since connecting to that site is really imp.
But I am having a problem. I read briefly NAT and iptables HOWTOs and decided
the rule,
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
My loaded modules by lsmod include,
ipt_MASQUERADE 1504 5 (autoclean)
iptable_mangle 2336 0 (autoclean) (unused)
iptable_nat 15988 1 (autoclean) [ipt_MASQUERADE]
ip_conntrack 15180 1 (autoclean) [ipt_MASQUERADE iptable_nat]
iptable_filter 1952 0 (autoclean)
ip_tables 11584 6 [ipt_MASQUERADE iptable_mangle iptable_nat
iptable_filter]
But my problem is that inspite of giving the above command I have,
#iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
What is wrong now? Why is'nt my rule listed?
I even have 1 in /proc/sys/net/ipv4/ip_forward.
Please do tell as early as possible or atleast tell me how to get it working
under ipchains.
Thanks a lot in advance and bye.
-Payal
p.s i have some problems with my present email address, it would be great if
you can cc the mail to payal99 @ cyberspace.org
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <200206131517.01195@.>]
* Re: iptables : masq
[not found] <200206131517.01195@.>
@ 2002-06-13 10:20 ` Sathi
2002-06-13 13:25 ` Payal
2002-06-14 10:17 ` Axel Heinrici
1 sibling, 1 reply; 7+ messages in thread
From: Sathi @ 2002-06-13 10:20 UTC (permalink / raw)
To: Payal, netfilter
Use
#iptables -t nat -L
-Sathayn
----- Original Message -----
From: Payal <rpayal@indiainfo.com>
To: <netfilter@lists.samba.org>
Sent: Thursday, June 13, 2002 3:28 PM
Subject: iptables : masq
Hi,
As I said earlier I am using Mdk Linux 8.2 with kernel 2.4.18. I am trying
to
shift from ipchains to iptables for a simple reson that I cannot connect to
one particular ftp site where ip_masq_ftp was required in earlier versions
of
kernel. Now this module is no longer available. So, I have to shift to
iptables since connecting to that site is really imp.
But I am having a problem. I read briefly NAT and iptables HOWTOs and
decided
the rule,
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
My loaded modules by lsmod include,
ipt_MASQUERADE 1504 5 (autoclean)
iptable_mangle 2336 0 (autoclean) (unused)
iptable_nat 15988 1 (autoclean) [ipt_MASQUERADE]
ip_conntrack 15180 1 (autoclean) [ipt_MASQUERADE iptable_nat]
iptable_filter 1952 0 (autoclean)
ip_tables 11584 6 [ipt_MASQUERADE iptable_mangle iptable_nat
iptable_filter]
But my problem is that inspite of giving the above command I have,
#iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
What is wrong now? Why is'nt my rule listed?
I even have 1 in /proc/sys/net/ipv4/ip_forward.
Please do tell as early as possible or atleast tell me how to get it working
under ipchains.
Thanks a lot in advance and bye.
-Payal
p.s i have some problems with my present email address, it would be great if
you can cc the mail to payal99 @ cyberspace.org
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: iptables : masq
2002-06-13 10:20 ` Sathi
@ 2002-06-13 13:25 ` Payal
0 siblings, 0 replies; 7+ messages in thread
From: Payal @ 2002-06-13 13:25 UTC (permalink / raw)
To: netfilter
Hi,
Thanks for the mail.
I could see the rules properly now.
[root]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
But now the problem is that if I try to ping a site or external ip
from a computer from internal network I still don't get the site.
The command I used was,
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Thanks a lot again and waiting for the replies.
rpayal@indiainfo.com
>Use
>#iptables -t nat -L
>
>-Sathayn
>
>----- Original Message -----
>From: Payal <rpayal@indiainfo.com>
>To: <netfilter@lists.samba.org>
>Sent: Thursday, June 13, 2002 3:28 PM
>Subject: iptables : masq
>
>
>Hi,
>As I said earlier I am using Mdk Linux 8.2 with kernel 2.4.18. I am
>trying
>to
>shift from ipchains to iptables for a simple reson that I cannot
>connect to
>one particular ftp site where ip_masq_ftp was required in earlier
>versions
>of
>kernel. Now this module is no longer available. So, I have to shift
>to
>iptables since connecting to that site is really imp.
>But I am having a problem. I read briefly NAT and iptables HOWTOs and
>decided
>the rule,
>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>
>My loaded modules by lsmod include,
>ipt_MASQUERADE 1504 5 (autoclean)
>iptable_mangle 2336 0 (autoclean) (unused)
>iptable_nat 15988 1 (autoclean) [ipt_MASQUERADE]
>ip_conntrack 15180 1 (autoclean) [ipt_MASQUERADE
>iptable_nat]
>iptable_filter 1952 0 (autoclean)
>ip_tables 11584 6 [ipt_MASQUERADE iptable_mangle
>iptable_nat
>iptable_filter]
>
>But my problem is that inspite of giving the above command I have,
>
>#iptables --list
>Chain INPUT (policy ACCEPT)
>target prot opt source destination
>
>Chain FORWARD (policy ACCEPT)
>target prot opt source destination
>
>Chain OUTPUT (policy ACCEPT)
>target prot opt source destination
>
>What is wrong now? Why is'nt my rule listed?
>I even have 1 in /proc/sys/net/ipv4/ip_forward.
>Please do tell as early as possible or atleast tell me how to get it
>working
>under ipchains.
>
>Thanks a lot in advance and bye.
>-Payal
>p.s i have some problems with my present email address, it would be
>great if
>you can cc the mail to payal99 @ cyberspace.org
>
>
>
---------------------------------------------
http://mail.indiainfo.com
India's first ISO certified portal
Check world time at http://time.indiainfo.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: iptables : masq
[not found] <200206131517.01195@.>
2002-06-13 10:20 ` Sathi
@ 2002-06-14 10:17 ` Axel Heinrici
2002-06-14 10:26 ` Malcolm Turnbull
` (2 more replies)
1 sibling, 3 replies; 7+ messages in thread
From: Axel Heinrici @ 2002-06-14 10:17 UTC (permalink / raw)
To: netfilter
Hi
On Thursday 13 June 2002 11:58, Payal wrote:
> Hi,
> As I said earlier I am using Mdk Linux 8.2 with kernel 2.4.18. I
> am trying to shift from ipchains to iptables for a simple reson
> that I cannot connect to one particular ftp site where
> ip_masq_ftp was required in earlier versions of kernel. Now this
> module is no longer available. So, I have to shift to iptables
> since connecting to that site is really imp.
> But I am having a problem. I read briefly NAT and iptables HOWTOs
> and decided the rule,
> iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>
> My loaded modules by lsmod include,
> ipt_MASQUERADE 1504 5 (autoclean)
> iptable_mangle 2336 0 (autoclean) (unused)
> iptable_nat 15988 1 (autoclean) [ipt_MASQUERADE]
> ip_conntrack 15180 1 (autoclean) [ipt_MASQUERADE
> iptable_nat] iptable_filter 1952 0 (autoclean)
> ip_tables 11584 6 [ipt_MASQUERADE iptable_mangle
> iptable_nat iptable_filter]
You will also need the modules ip_conntrack_ftp.o ip_nat_ftp.o.
Otherwise you will not succeed in doing active FTP.
greetings
Axel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: iptables : masq
2002-06-14 10:17 ` Axel Heinrici
@ 2002-06-14 10:26 ` Malcolm Turnbull
2002-06-14 12:02 ` PayalR
2002-06-14 12:02 ` PayalR
2 siblings, 0 replies; 7+ messages in thread
From: Malcolm Turnbull @ 2002-06-14 10:26 UTC (permalink / raw)
To: Axel Heinrici; +Cc: netfilter
Is that correct ?
Am I not the only one who thinks the instructions for NATing FTP
are V.contradictory ?
ps. This is NOT a flame I think IPTABLES is excellent...
My firewall did have :
modprobe ip_conntrack
modprobe ip_conntrack_ftp
This worked for some FTP connections but not for others..
I've now added :
modprobe ip_nat_ftp
to see if that helps.
Is their some clear documentation on FTP NAT somewhere ?
Axel Heinrici wrote:
>Hi
>On Thursday 13 June 2002 11:58, Payal wrote:
>
>
>>Hi,
>>As I said earlier I am using Mdk Linux 8.2 with kernel 2.4.18. I
>>am trying to shift from ipchains to iptables for a simple reson
>>that I cannot connect to one particular ftp site where
>>ip_masq_ftp was required in earlier versions of kernel. Now this
>>module is no longer available. So, I have to shift to iptables
>>since connecting to that site is really imp.
>>But I am having a problem. I read briefly NAT and iptables HOWTOs
>>and decided the rule,
>>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>>
>>My loaded modules by lsmod include,
>>ipt_MASQUERADE 1504 5 (autoclean)
>>iptable_mangle 2336 0 (autoclean) (unused)
>>iptable_nat 15988 1 (autoclean) [ipt_MASQUERADE]
>>ip_conntrack 15180 1 (autoclean) [ipt_MASQUERADE
>>iptable_nat] iptable_filter 1952 0 (autoclean)
>>ip_tables 11584 6 [ipt_MASQUERADE iptable_mangle
>>iptable_nat iptable_filter]
>>
>>
>
>You will also need the modules ip_conntrack_ftp.o ip_nat_ftp.o.
>Otherwise you will not succeed in doing active FTP.
>
>greetings
> Axel
>
>
--
Regards,
Malcolm Turnbull
IT Manager
Crocus.co.uk Ltd
01344 629661
07715 770523
http://www.crocus.co.uk/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: iptables : masq
2002-06-14 10:17 ` Axel Heinrici
2002-06-14 10:26 ` Malcolm Turnbull
@ 2002-06-14 12:02 ` PayalR
2002-06-14 12:02 ` PayalR
2 siblings, 0 replies; 7+ messages in thread
From: PayalR @ 2002-06-14 12:02 UTC (permalink / raw)
To: netfilter
Hi,
Thanks a lot for the replies. I got it solved thankkkkkkkkkkks a lot to all
of you.
Byeeeee.
-Payal
On Friday 14 June 2002 03:47 pm, you wrote:
> Hi
>
> On Thursday 13 June 2002 11:58, Payal wrote:
> > Hi,
> > As I said earlier I am using Mdk Linux 8.2 with kernel 2.4.18. I
> > am trying to shift from ipchains to iptables for a simple reson
> > that I cannot connect to one particular ftp site where
> > ip_masq_ftp was required in earlier versions of kernel. Now this
> > module is no longer available. So, I have to shift to iptables
> > since connecting to that site is really imp.
> > But I am having a problem. I read briefly NAT and iptables HOWTOs
> > and decided the rule,
> > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
> >
> > My loaded modules by lsmod include,
> > ipt_MASQUERADE 1504 5 (autoclean)
> > iptable_mangle 2336 0 (autoclean) (unused)
> > iptable_nat 15988 1 (autoclean) [ipt_MASQUERADE]
> > ip_conntrack 15180 1 (autoclean) [ipt_MASQUERADE
> > iptable_nat] iptable_filter 1952 0 (autoclean)
> > ip_tables 11584 6 [ipt_MASQUERADE iptable_mangle
> > iptable_nat iptable_filter]
>
> You will also need the modules ip_conntrack_ftp.o ip_nat_ftp.o.
> Otherwise you will not succeed in doing active FTP.
>
> greetings
> Axel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: iptables : masq
2002-06-14 10:17 ` Axel Heinrici
2002-06-14 10:26 ` Malcolm Turnbull
2002-06-14 12:02 ` PayalR
@ 2002-06-14 12:02 ` PayalR
2 siblings, 0 replies; 7+ messages in thread
From: PayalR @ 2002-06-14 12:02 UTC (permalink / raw)
To: netfilter
Hi,
Thanks a lot for the replies. I got it solved thankkkkkkkkkkks a lot to all
of you.
Byeeeee.
-Payal
On Friday 14 June 2002 03:47 pm, you wrote:
> Hi
>
> On Thursday 13 June 2002 11:58, Payal wrote:
> > Hi,
> > As I said earlier I am using Mdk Linux 8.2 with kernel 2.4.18. I
> > am trying to shift from ipchains to iptables for a simple reson
> > that I cannot connect to one particular ftp site where
> > ip_masq_ftp was required in earlier versions of kernel. Now this
> > module is no longer available. So, I have to shift to iptables
> > since connecting to that site is really imp.
> > But I am having a problem. I read briefly NAT and iptables HOWTOs
> > and decided the rule,
> > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
> >
> > My loaded modules by lsmod include,
> > ipt_MASQUERADE 1504 5 (autoclean)
> > iptable_mangle 2336 0 (autoclean) (unused)
> > iptable_nat 15988 1 (autoclean) [ipt_MASQUERADE]
> > ip_conntrack 15180 1 (autoclean) [ipt_MASQUERADE
> > iptable_nat] iptable_filter 1952 0 (autoclean)
> > ip_tables 11584 6 [ipt_MASQUERADE iptable_mangle
> > iptable_nat iptable_filter]
>
> You will also need the modules ip_conntrack_ftp.o ip_nat_ftp.o.
> Otherwise you will not succeed in doing active FTP.
>
> greetings
> Axel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-06-14 12:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-13 9:58 iptables : masq Payal
[not found] <200206131517.01195@.>
2002-06-13 10:20 ` Sathi
2002-06-13 13:25 ` Payal
2002-06-14 10:17 ` Axel Heinrici
2002-06-14 10:26 ` Malcolm Turnbull
2002-06-14 12:02 ` PayalR
2002-06-14 12:02 ` PayalR
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.