LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-14-2015, 02:18 PM   #1
rs232
Member
 
Registered: Oct 2005
Posts: 51

Rep: Reputation: 0
mangle and custom chains


Is there any way to use mangle with custom chains?

It seems to be working happily with e.g. INPUT or any other system chain but not with the ones I have created.

The reason being I would like to mark a packet but I would like this to make it relevant only to my chains. So mark as soon as it enters my first custom chain, then run/unset the marking based on iptables conditions.

In my head it all makes sense but I can't find a way to mark packets

Thanks!
 
Old 03-14-2015, 06:58 PM   #2
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
How are you mangling them with INPUT? what iptables commands?
What error does it give you when you attempt to do it in a user defined (custom) chain?
 
Old 03-14-2015, 07:25 PM   #3
rs232
Member
 
Registered: Oct 2005
Posts: 51

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rs232 View Post
Is there any way to use mangle with custom chains?
As stated, I'd like to mangle on custom chains. Not the INPUT or any default ones.
The iptables commands to do so is what I'm looking for.
The error is the usual iptables gives : iptables: No chain/target/match by that name.

Thanks
 
  


Reply



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
Custom chains for IPTables Beorn1357 Linux - Security 5 09-07-2014 04:12 AM
How to mangle the ip options of ip header MegaMindd Linux - Newbie 0 06-07-2011 09:21 AM
Custom chains in Iptables colucix Linux - Networking 2 07-11-2008 08:04 AM
Mangle Table santhosh23 Linux - General 2 06-24-2007 08:52 PM
need info on mangle swapna_gg83 Linux - Networking 3 05-03-2006 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:28 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration