At 02:58 PM 11/22/2002 +0100, Josef Pojsl wrote:
Sean,On Thu, Nov 21, 2002 at 10:54:46PM -0600, Sean O'Neill wrote: > Is there anyway to use rdr so that redirection occurs for all IPs except a > specific list ? > > Say I have IPs: > > 1.1.1.1 > 3.3.3.3 > 54.54.54.54 > > I want these IPs to pass through IPFilter without being > redirected. Everything else I want redirected. Are those IPs source or destination addresses? In either case, it is always possible to use rules like rdr iface0 from 1.1.1.1/32 to any -> 0 port 0 tcp rdr iface0 from 1.1.1.1/32 to any -> 0 port 0 udp rdr iface0 from any to 3.3.3.3/32 -> 0 port 0 tcp rdr iface0 from any to 3.3.3.3/32 -> 0 port 0 udp ...
Sorry I wasn't specific. The IPs are source addresses. I'm basically looking.
I'm still a bit confused by the above. Let me give you a sample network and can you send me the rdr rules for the example.The right-hand side "0 port 0 ..." has the semantics of "do not touch". > Is this possible in IPFilter 3.4.29? Yep.
Web server running on port 80 on IP 9.9.9.9.
I have remote clients at 1.1.1.1, 2.2.2.2, and 3.3.3.0/24 that I want to pass through IPFilter rdr without being redirected. So basically I want these folks talking to the Web server running on 9.9.9.9:80
Everyone else I want redirected to a Web server running 7.7.7.7 port 85. So would it be something like this ?
rdr iface0 from 1.1.1.1/32 to any -> 0 port 0
rdr iface0 from 2.2.2.2/32 to any -> 0 port 0
rdr iface0 from 3.3.3.0/24 to any -> 0 port 0
rdr iface0 from any to 9.9.9.9 port 80 -> 7.7.7.7 port 85 tcp
So the first three "0 port 0" lines means leave everything ( TCP, UDP, what about ICMP [not that I care about this - just curious] ) as is and go into the IPFilter "filter" logic next ? Right ?
And then the fourth line catches everything else for TCP-only going to 9.9.9.9:80 and redirects them to 7.7.7.7:85 and then go into the IPFilter "filter" logic next ? Right ?
--
........................................................
......... ..- -. .. -..- .-. ..- .-.. . ... ............
.-- .. -. -... .-.. --- .-- ... -.. .-. --- --- .-.. ...
Sean O'Neill
