Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sinz
n00b
n00b


Joined: 04 Dec 2003
Posts: 9

PostPosted: Wed Jan 28, 2004 11:03 pm    Post subject: iptables ? Reply with quote

Hi,

Im trying to get xmail working on my gentoo box and it seams to want iptables. I have trying emerge'ing iptables but when I go to run it, it says

"modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `nat': iptables who? (do you need to insmod?)"

Im fairly new to linux and would appreciate any help or even a point in the right direction.

Thanks,

Mick
_________________
Where there is hope, there is Linux.
Back to top
View user's profile Send private message
maxcow
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 126

PostPosted: Thu Jan 29, 2004 12:57 am    Post subject: Reply with quote

you need to compile the module iptables in your kernel:
do as root:
Code:
cd /usr/src/linux
make menuconfig
     (search the iptables module and press M, then exit)
     (then do one of these:)
make && make modules_install (this is for a 2.6 kernel)
make dep && make clean bzImage modules
modules_install  (for a 2.4 kernel)

mount /boot
cp arch/i386/boot/bzImage /boot

then you have to reboot.
then you can include the iptables module doing
Code:
modprobe iptables

or maybe it's done at automatically at boot.


Last edited by maxcow on Thu Jan 29, 2004 1:00 am; edited 1 time in total
Back to top
View user's profile Send private message
triwebb1
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2003
Posts: 87

PostPosted: Thu Jan 29, 2004 12:58 am    Post subject: Reply with quote

Is xmail a mail client? If it is, then just use a different one. If you really want xmail, then I guess you will need to compile the iptables stuff in your kernel. You will need to eneble ip netfiltering and nat support in the kernel, then recompile the userland iptables (emerge iptables).
Back to top
View user's profile Send private message
Aphex3K
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 182
Location: Germany

PostPosted: Thu Jan 29, 2004 7:47 am    Post subject: Reply with quote

maxcow wrote:
you need to compile the module iptables in your kernel:
do as root:
Code:
cd /usr/src/linux
make menuconfig
     (search the iptables module and press M, then exit)



I wonder if you could give me a hand on where to find this option. I'm confused by the menu-config. I think it should be somewhere around networking...

What about IP-Filtering and/or Socketfiltering? Are they necessary to get iptables to work?

Thanks in Advance
_________________
managing a server running gentoo...
Back to top
View user's profile Send private message
Baldzius
Apprentice
Apprentice


Joined: 17 Mar 2003
Posts: 154
Location: Lithuania

PostPosted: Thu Jan 29, 2004 11:14 am    Post subject: Reply with quote

Aphex3K wrote:
I wonder if you could give me a hand on where to find this option. I'm confused by the menu-config. I think it should be somewhere around networking...

What about IP-Filtering and/or Socketfiltering? Are they necessary to get iptables to work?

Thanks in Advance


It is under Networking Options -> Network packet filtering (replaces ipchains)

Then you go IP:Netfilter configuration ---> and select options you need {i prefer selecting all as modules}
Back to top
View user's profile Send private message
Aphex3K
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 182
Location: Germany

PostPosted: Thu Jan 29, 2004 1:20 pm    Post subject: Reply with quote

Baldzius wrote:
It is under Networking Options -> Network packet filtering (replaces ipchains)

Then you go IP:Netfilter configuration ---> and select options you need {i prefer selecting all as modules}


Thanks, i'll try this and leave the Network-/Socketfiltering unchecked...
_________________
managing a server running gentoo...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum