* marking is not working out my eth0 interface
@ 2008-09-18 10:07 Brent Clark
2008-09-18 10:53 ` Brian Austin - Standard Universal
0 siblings, 1 reply; 2+ messages in thread
From: Brent Clark @ 2008-09-18 10:07 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: marking is not working out my eth0 interface
2008-09-18 10:07 marking is not working out my eth0 interface Brent Clark
@ 2008-09-18 10:53 ` Brian Austin - Standard Universal
0 siblings, 0 replies; 2+ messages in thread
From: Brian Austin - Standard Universal @ 2008-09-18 10:53 UTC (permalink / raw)
To: Brent Clark; +Cc: netfilter
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...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-18 10:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox