On Mon, Apr 29, 2002 at 11:00:13PM +0200, Karol Daniszewski wrote:
> Hi
> 
> This is the situation, the machine, FreeBSD 4.5 Stable (ipfilter ver.
> 3.4.20) has two networks, 212.33.80.32/28  (gateway 212.33.80.33) and
> 195.205.159.0/25 (gateway 195.205.159.2 cisco 25xx) and interfaces fxp0
> 212.33.80.42 and fxp1 195.205.159.14.
> Default routing is set by 212.33.80.33. But I want to set this in that way,
> when the packet from the internet is arriving to fxp1 it returns the same
> way. So after reading some papers I set up:
> [root@net westbam]# ipfstat -i
> pass in quick on fxp1 to fxp1:195.205.159.2 proto tcp from 195.205.159.14/32
                      ^
> to any
> pass in quick on fxp1 to fxp1:195.205.159.2 proto udp from 195.205.159.14/32
                      ^
> to any
> pass in quick on fxp1 to fxp1:195.205.159.2 proto icmp from
                      ^
> 195.205.159.14/32 to any
> and this didn't work, even when I tried to change IN to OUT :

Yeah it should be 'out'.

> [root@net westbam]# ipfstat -o
> pass out quick on fxp1 to fxp1:195.205.159.2 proto tcp from
                       ^
> 195.205.159.14/32 to any
> pass out quick on fxp1 to fxp1:195.205.159.2 proto udp from
                       ^
> 195.205.159.14/32 to any
> pass out quick on fxp1 to fxp1:195.205.159.2 proto icmp from
                       ^
> 195.205.159.14/32 to any
> this one didn't work even.
> When someone is making connection to 195.205.159.14 the packets with source
> ip 195.205.159.14 are going back by fxp0.
> My NAT table is empty.
> Can anyone help me and tell me what I'm doing wrong?

Stop. Think. You are trying to _redirect_ outgoing packets out of
interface fxp1 since the routing table will send them out of
fxp0. I say again, the system is trying to send them out of
_fxp0_. When will the rules above ever match? The system is not
sending the packets out of fxp1.
-- 
Crist J. Clark                     |     [EMAIL PROTECTED]
                                   |     [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/    |     [EMAIL PROTECTED]

Reply via email to