Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th May 2006, 15:26
rocket30 rocket30 is offline
Junior Member
 
Join Date: May 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default The Perfect Xen 3.0 Setup For Debian | IPTABLES

I took the compile-your-own-kernel route and iptables is not working on vm01.

This is what shows on dm0:

dm0:/# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere PHYSDEV match --physdev-in vif4.0

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
dm0:/# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere PHYSDEV match --physdev-in vif4.0

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
dm0:/#


This is what shows on vm01:

vm01:/# iptables -L
Note: /etc/modules.conf is more recent than /lib/modules/2.6.12.6-xenU/modules.d ep
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.11: can't initialize iptables table `filter': iptables who? (do yo u need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
vm01:/#


From dm0 I display iptables kernel options for xen0 and xenU:

dm0:/# cat /boot/config-2.6.12.6-xen0 | grep -i "IPTABLES"
CONFIG_IP_NF_IPTABLES=m
dm0:/# cat /boot/config-2.6.12.6-xenU | grep -i "IPTABLES"
CONFIG_IP_NF_IPTABLES=m
dm0:/#



Any suggestions on how to fix iptables on vm01?
Reply With Quote
Sponsored Links
  #2  
Old 5th May 2006, 15:42
rocket30 rocket30 is offline
Junior Member
 
Join Date: May 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I installed module-init-tools on vm01, rebooted and receive the following:

vm01:~# iptables -L
iptables v1.2.11: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
vm01:~#
Reply With Quote
  #3  
Old 5th May 2006, 20:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Are you sure you followed the tutorial to the letter? It seems as if iptables is not compiled into domU's kernel.
Do you have multiple domU kernels? Then make sure you use the correct one.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 23rd July 2006, 20:21
dracula dracula is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, I have the same problem.
I have rechecked the kernel configuration and compared to the howto but I don't see any difference. iptables has been compiled as module in dom0 and domU.
Any other things I have to look at?
Reply With Quote
  #5  
Old 24th July 2006, 16:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Just make sure you follow the tutorial to the letter. Use Xen 3.0.1 instead of Xen 3.0.2, etc.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 24th July 2006, 17:05
dracula dracula is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I can say I have followed the tutorial to the letter!
I am using xen 3.0.1 instead of 3.0.2, ip_tables compiled as module and the mofules copied to domU after kernel compilation.
I don't know what I could have done different.
Reply With Quote
  #7  
Old 25th July 2006, 14:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Are you sure you enabled iptables for the domU kernel? Please check in the domU kernel configuration file in /boot.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 25th July 2006, 14:18
dracula dracula is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

yes pretty sure! but I found the problem!
my fault

I installed dom0 as amd64 and one domU as i386 and a other also as amd64!
The one I was trying to set up was installed as i386 ( don't ask why ... I don't know, probably the heat in the office )
As I noticed this I tried it on the amd64 installation and there it works ! so I gues my problem is fixed
thanks anyway for the help
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu "the perfect setup with RAID 1" Hans Installation/Configuration 1 16th January 2006 17:50
Fedora Core 4 - The Perfect Setup nandhu HOWTO-Related Questions 27 10th January 2006 12:23
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 16:04
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30
Attempting The Perfect Setup (To Some Extent) PsyVision HOWTO-Related Questions 3 3rd November 2005 11:50


All times are GMT +2. The time now is 12:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.