Port forwarding question
Erich Weiler <[email protected]> Wed, 08 Jul 2009 14:57:41 -0700
| Newsgroups | gmane.comp.security.firewalls.ipfilter |
|---|---|
| Message-ID | <14837_1247090419_4A5516F1_14837_4235_1_4A551655.6040404@soe.ucsc.edu> |
Hey all- I've got a very specific port forwarding setup I'd like to implement, but I can't seem to find the exact syntax to do it. I'm on OpenSolaris. What I want to do is achieved by NAT I think. I need a rule such that: If a TCP packet comes in with a SOURCE IP of 10.1.1.1 and a DESTINATION port of 22 Then.. Forward it to 192.168.1.1 on port 1000 ?? I see the rdr directive, but it doesn't seem to allow for specifying a 'source' IP address and 'destination' port in packet matching portion of the rule, it looks like the end of the rule should be "-> 192.168.1.1 port 1000" I think... Quickly browsed the archives but couldn't find this, nor could I find an example in the documentation... Any hints? Thanks!