LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-14-2012, 06:20 PM   #1
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
Question Iptables - unable to use target ULOG on Fed 17


Hi all,

I am trying to get iptables to use target -j ULOG via a script and it is returning: Bad argument `ULOG'

My firewall rule looks something like:
iptables -A $CN_AnULOG -j ULOG --ulog-nlgroup $ULOG_NLGROUP --ulog-cprange $ULOG_SNAP_LEN --ulog-prefix $PREFIX_STR

Assuming that this is correct (which on Openwrt it is), I tried ulog1.24 and ulog2.x and verified that ipt_ULOG is loaded through lsmod - which it is. I even recompiled my kernel/iptables with ULOG support.

Does anyone know why this is happening? or perhaps that this is a know issue for Fedora 17 x64?

Thanks!
 
Old 09-15-2012, 01:08 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,457
Blog Entries: 54

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
The rule itself looks OK. Maybe it's something with your variables if you load rules automagically? Do any of the logs show anything related?
 
Old 09-17-2012, 05:44 PM   #3
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Original Poster
Rep: Reputation: 41
Thanks - that is exactly what I thought and you are correct.. somehow the strings in the variables were not be substituted correctly! I'll mark the thread as solved!
 
  


Reply

Tags
fedora 17, iptables


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write two iptables ulog streams into separate files? adept Linux - Newbie 0 10-03-2011 07:06 PM
iptables: rule with RETURN target just after a rule with ACCEPT target Nerox Linux - Networking 6 09-04-2011 03:33 PM
ULOG iptables Mysql gabsik Linux - Software 0 07-15-2006 09:24 AM
General gateway logging (and iptables ULOG) ? michaelsanford Linux - Networking 16 05-18-2005 08:27 PM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM


All times are GMT -5. The time now is 11:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration