From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John H. Spicer" Subject: Re: Problem using fwmark -- how to mark packets from local host? Date: Wed, 03 Mar 2004 17:43:00 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <40465F74.8070609@edg.com> References: <7C9884991ADAE0479C14F10C858BCDF56791BB@alderaan.smgtec.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7C9884991ADAE0479C14F10C858BCDF56791BB@alderaan.smgtec.com> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Daniel Chemko , netfilter@lists.netfilter.org Daniel Chemko wrote: > Use the OUTPUT chain instead of the PREROUTING chain for packets > originating from the local system. > > >>Is there a way to mark packets originating on the local system? > > > Thanks. I tried that, but it did not seem to have any effect. The command I used was: iptables -t mangle -A OUTPUT -j MARK --set-mark 0x0a -p tcp --dport 25 Now, when connecting from the localhost, I get: telnet: connect to address 66.33.196.49: No route to host I can still connect via the NAT'd systems okay. Thanks for the assistance! John.