LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-18-2006, 05:00 PM   #1
bartmanxxi
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
iptables: Using marks on NAT table


I'm using CONNMARK with layer7 for doing traffic shaping, and it works great.
My problem is that I want to SNAT packets marked with CONNMARK (actually i'm doing "-m mark --mark X -j CONNMARK --save-mark"), but no packets go through the rule "iptables -t nat -A POSTROUTING -m connmark --mark X -j SNAT --to x.x.x.x".
I also tried using "-m mark --mark X -j SNAT --to x.x.x.x".
All the marking is done on mangle table PREROUTING chain.

I've searching in the web, and it seems to be all fine, but it doesn't work.

Thanx a lot.
 
  


Reply


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
iptables help - nat table Tony/osIRIs Linux - Networking 7 03-05-2006 06:33 PM
brocken iptables, problems with nat table gottin Linux - Software 1 02-08-2006 09:40 AM
Iptables with 3 marks. It is possible? thucalila Linux - Networking 0 12-01-2004 09:11 AM
Adding the NAT table into iptables logo Linux - Newbie 2 10-28-2004 01:58 AM
iptables how to show the nat table Breezer Linux - Security 1 12-13-2001 02:10 PM

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

All times are GMT -5. The time now is 10:40 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