Linux Netfilter discussions
 help / color / mirror / Atom feed
* Adding variables to iptables file
@ 2005-03-08 10:25 Veena Etcell
  2005-03-08 12:09 ` richard hauswald
  2005-03-08 12:56 ` Petrisor Bobalca
  0 siblings, 2 replies; 8+ messages in thread
From: Veena Etcell @ 2005-03-08 10:25 UTC (permalink / raw)
  To: netfilter

Hi,

I am hoping someone can help with the following:
I am at a point where I require advice/direction with regards to adding
variables (manually or otherwise) to a standard iptables file.
I am not sure how to add them/where to add them or the syntax that is
required.

In the example below I have manually added one variable (Line 2) to see
would happen to /etc/sysconfig/iptables (Redhat FC3 install).

When I iptables-restore < /etc/sysconfig/iptables I get "error at line 2
failed"


# Generated by iptables-save v1.2.11 on Mon Mar  7 22:18:56 2005
EXT_INTERFACE="eth0"
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p tcp -j REJECT --reject-with icmp-port-unreachable 
-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable 
-A INPUT -i lo -j ACCEPT 
-A OUTPUT -o lo -j ACCEPT 
-A mine -j ACCEPT 
COMMIT
# Completed on Mon Mar  7 22:18:56 2005

Any advice would be appreciated
Thanks and regards
michael



^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <Pine.LNX.4.60.0503080528530.2382@darkstar.sysinfo.com>]
* RE: Adding variables to iptables file
@ 2005-03-09 15:43 Dimitri Yioulos
  0 siblings, 0 replies; 8+ messages in thread
From: Dimitri Yioulos @ 2005-03-09 15:43 UTC (permalink / raw)
  To: netfilter

>that's the classic symptom of kernel & userspace being out of sync. 
>i.e. your kernel has patches applied to it that your userspace iptables
>command is not aware of.
 
OK.  I'm a noob, and that's useful info., tough I wish I hadn't gotten to
that point in the first place :-)
Question:  if I uninstall the current version, and role back to the previous
version, which worked just fine, should I be OK?  There have been a number
of kernel updates since I first installed it from rpm.
 
>when you apply patches from PoM, make sure you specify KERNEL_DIR and
>IPTABLES_DIR and that you then compile the iptables userspace against
>that kernel source tree.
> 
>the error indicates that the conntrack structures of the iptables binary
>and the kernel are different sizes.
 

Thanks for this.  Since I've never used PoM, I'll rtfm and any how-to's
(suggestions?) before moving forward.  Are there any tips/tricks/gotchas you
can suggest?

 

Many thanks!

 

Dimitri


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-03-09 15:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-08 10:25 Adding variables to iptables file Veena Etcell
2005-03-08 12:09 ` richard hauswald
2005-03-08 12:56 ` Petrisor Bobalca
     [not found] <Pine.LNX.4.60.0503080528530.2382@darkstar.sysinfo.com>
2005-03-08 10:36 ` Veena Etcell
2005-03-08 22:18   ` John A. Sullivan III
2005-03-08 22:50     ` Dimitri Yioulos
2005-03-09  1:37       ` Jason Opperisano
  -- strict thread matches above, loose matches on Subject: below --
2005-03-09 15:43 Dimitri Yioulos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox