Hi
I was using the same configuration as you posted, but it doesn't work.
I am using SunOS 5.10 Generic sun4u sparc SUNW,Sun-Fire-V240
my ipf.conf is
# IP Filter rules syntax.
pass out log quick on bge2 to bge3:192.168.2.1 from 192.168.2.0/24 to any
sh-shuihu# ifconfig -a
bge2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255
ether 0:14:4f:5a:f4:ac
bge3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
inet 192.168.2.10 netmask ffffff00 broadcast 192.168.2.255
ether 0:14:4f:5a:f4:ad
sh-shuihu# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.1.0 192.168.1.10 U 1 2 bge2
192.168.2.0 192.168.2.10 U 1 2 bge3
default 192.168.1.1 UG 1 1
127.0.0.1 127.0.0.1 UH 1 0 lo0
When I sent out UDP message with source ip 192.168.2.10 to 193.168.3.1,
the ipf match the package, and redirect it to interface bge3. But I can't
caputre the package in the wire.
here is the ipf log
Nov 22 16:10:41 sh-shuihu ipmon[177]: [ID 702911 local0.notice] 16:10:40.981413
bge2 @0:1
p 192.168.2.10,5060 -> 192.168.3.1,5060 PR udp len 20 548 OUT
Nov 22 16:10:43 sh-shuihu ipmon[177]: [ID 702911 local0.notice] 16:10:42.982818
bge2 @0:1
p 192.168.2.10,5060 -> 192.168.3.1,5060 PR udp len 20 548 OUT
Nov 22 16:10:47 sh-shuihu ipmon[177]: [ID 702911 local0.notice] 16:10:46.983627
bge2 @0:1
p 192.168.2.10,5060 -> 192.168.3.1,5060 PR udp len 20 548 OUT
Could any one help.
This message posted from opensolaris.org
_______________________________________________
networking-discuss mailing list
[email protected]