From: Brian Austin - Standard Universal <brian@standarduniversal.com.au>
To: Brent Clark <brentgclarklist@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: marking is not working out my eth0 interface
Date: Thu, 18 Sep 2008 20:53:33 +1000 [thread overview]
Message-ID: <48D2332D.1010104@standarduniversal.com.au> (raw)
In-Reply-To: <48D22851.4080601@gmail.com>
Brent Clark wrote:
> Hi
>
> I dont know if its a state of panic or what, I rebooted my FW, and the
> next thing I know marking is not working
>
> #here i do marking
>
> /usr/local/sbin/iptables -t mangle -A PREROUTING -i eth1 -p tcp -m
> multiport --dport 8080,8087,993,22,80,443 -s 192.168.111.0/24 -j MARK
> --set-mark 0x1
>
> #heres the result (OUT, should be eth2)
> Sep 18 11:51:22 cptgate kernel: [ 2915.617078] [FORWARD DROP]:
> IN=eth1 OUT=eth0 SRC=192.168.111.9 DST=66.102.9.127 LEN=60 TOS=0x00
> PREC=0x00 TTL=63 ID=52056 DF PROTO=TCP SPT=41618 DPT=80 WINDOW=5840
> RES=0x00 SYN URGP=0 MARK=0x1
>
> #My entry in the rt_table
> root@gate:/root/iptables_sub_scripts# cat /etc/iproute2/rt_tables
> #
> # reserved values
> #
> 255 local
> 254 main
> 253 default
> 0 unspec
> #
> # local
> #
> #1 inr.ruhep
> 201 TELKOM
>
> root@gate:/root/iptables_sub_scripts# ip rule list
> 0: from all lookup local
> 32765: from all fwmark 0x1 lookup TELKOM
> 32766: from all lookup main
> 32767: from all lookup default
>
> # My entry for iptables
> /usr/local/sbin/iptables -t filter -A FORWARD -i eth1 -o eth2 -p tcp
> -s 192.168.111.9 -m multiport --dport 80,443,8087 -m state --state NEW
> -j ACCEPT
>
> #sysctl.conf
> net.ipv4.ip_forward=1
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
where is your TELKOM table ?
ip route show table TELKOM
The mark appears to be made... MARK=0x1
try
echo 1 > /proc/sys/net/ipv4/ip_forward
#sysctl.conf
net.ipv4.ip_forward=1 doesnt do it for me...
prev parent reply other threads:[~2008-09-18 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 10:07 marking is not working out my eth0 interface Brent Clark
2008-09-18 10:53 ` Brian Austin - Standard Universal [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48D2332D.1010104@standarduniversal.com.au \
--to=brian@standarduniversal.com.au \
--cc=brentgclarklist@gmail.com \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox