Hi all, On Mon, 27 Jan 2003 14:47:48 +0100 Remco Post <[EMAIL PROTECTED]> wrote:
> > On Mon, 27 Jan 2003 10:21:42 +0200 > Andrei Syrovenko <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > 1. What I can see from your rules is you are trying to use policy > > routing. Source routing is a different thing. > > > > That may be a better name for what I'm trying to do ;-) > > > 2. You can not mix policy routing (to <int>[:<ip>] clause) and keep > > state technique in you rules, AFAIK. > > > > THat may explain why this didn't work with the 'flags S' added, as I > usually do in out rules. Ok, this caused a problem with the state table. Thanks for the hint, or I may have never found this one. What I did is rewrite the rules to: block out quick on ip.tun2 to hme0:62.194.6.1 proto tcp from 145.100.55.8/29 to any port = 80 block out quick on ip.tun2 to hme0:62.194.6.1 proto tcp from 145.100.55.8/29 to any port = 21 What I don't understand is that this seems to work. I don't keep state, the rules are quick, so they don't continue down onto the ruleset (right?), and still I'm able to contact websites (and ftp sites). Unfortunately, and I don't know how this cold be solved, is that I'd like to make an exception for one netblock, those I do want to contact via my tunnel. I tried something like: pass out quick on ip.tun2 proto tcp from 145.100.55.8/29 to 145.100.0.0/18 port = 80 flags S keep state keep frags and put that as the first rule in my ruleset. Unfortunately, that does not work, and I'm sort of stuck for an answer. What could I put there, to make http traffic for 145.100.0.0/18 go via my default gateway, and the rest via hme0:62.194.6.1? > > > -- > > Best regards, > > Andrei > > > > Monday, January 27, 2003, 12:05:25 AM, Remco Post wrote: > > > Hi, > > > > > I wanted to do some source routing and came up with the two > > > following to rules: > > > > > > > pass out quick on ip.tun2 to hme0:62.194.6.1 proto tcp from > > > 145.100.55.8/29 to any port = 80 keep state keep frags group 11 > > > > pass out quick on ip.tun2 to hme0:62.194.6.1 proto tcp from > > > 145.100.55.8/29 to any port = 21 keep state keep frags group 11 > > > For some reason, I don't know why, ftp is a problem. I have the > mandatory ftp proxy rules in my ipnat.conf, still, ftp doesn't work > with policy routing, It does work when I leave this rule out. No > biggy, ftp site maintainers do seem to appriciate the use of ICMP, at > least the sites I've tested... > > > > > > My default gateway is via ip.tun2, an ip-ip tunnel. Well most > > > people on the internet have forgotten about the use of ICMP, so a > > > mtu of 1480 is not really handy. These two rules redirect my http > > > and ftp traffic to my'real' gateway. Works perfectly. I was just > > > wondering, the Howto says this rewites the destination address, > > > but for some reason I'm able to reach all websites... Is this an > > > error in the Howto? > > And that reamains a question... ;-) > > > > > > I'm running ipfilter v3.4.29 on solaris8 on sparc. > > > > > > > -- Remco > > > > > -- Remco
