Subject: problems with ipnat.conf
To: None <netbsd-help@netbsd.org>
From: Jon <jons@dotnet.com>
List: netbsd-help
Date: 11/16/2001 11:24:08
This is a multi-part message in MIME format.
----MW_Bound_nyaajujapyjdcdsdqq
Content-Type: text/plain;
I am having problems with my port redirections, enclosed is my ipnat.conf file.
I want to redirect all local network traffic on port 80 to the web server.
you can see my file, pretty easy. I thought.
Anyway I tried it, I have dns pointing to 192.168.1.1 for jons.dotnet.com and then this should get redirected to 192.168.1.4, the web server.
The web server bit works because when the dns is direct to that it works just fine.
When the redirection happens I monitor on ipmon -a
the line comes up , the correct rules, destination ip and port is fine, source is fine. The arrows go both ways <- ->.
BUT like I said it didn't work.
I got a packet sniffer - sniffit which doesn't appear to like me very much (does anyone know any good command line sniffers?)
but when I requested the document from 192.168.1.5 the request from .5 to .1 was there but then nothing, no output to .4, the web server.
I think I need to find a better sniffer, I will try installing one on the red hat web server, see if I can see anything coming in.
But please check my file, also I checked the packets were not getting blocked, and they are not.
(Please email a response if possible! Thanks)
----MW_Bound_nyaajujapyjdcdsdqq
Content-Type: application/octet-stream;
name="ipf.conf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
IyBJUEYgRmlyZXdhbGwgQ29uZmlndXJhdGlvbiBGaWxlDQojIC9ldGMvaXBmLmNvbmYNCg0KIz09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09ICMjIw0KIyBMb29wYmFjayB0cmFmZmljICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICMjIw0KIz09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09ICMjIw0KcGFzcyBvdXQgcXVpY2sgb24gbG8wDQpw
YXNzIGluICBxdWljayBvbiBsbzANCg0KIz09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICMjIw0KIyBFdmlsIFRyYWZmaWMgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMjIw0KIz09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICMj
Iw0KYmxvY2sgaW4gbG9nIGxldmVsIGxvY2FsMC5lcnIgcXVpY2sgZnJvbSBhbnkgdG8gYW55IHBv
cnQgPSAzMTMzNw0KYmxvY2sgaW4gbG9nIGxldmVsIGxvY2FsMC5lcnIgcXVpY2sgZnJvbSBhbnkg
dG8gYW55IHBvcnQgPSAxMjM0NQ0KDQojPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gIyMjDQojIEJsb2NrIFNwb29mZWQvSW5zYW5l
IFRyYWZmaWMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyMjDQojPT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gIyMj
DQpibG9jayBpbiBsb2cgbGV2ZWwgbG9jYWwwLmVyciBxdWljayBvbiBydGswIGZyb20gMC4wLjAu
MC83IHRvIGFueQ0KYmxvY2sgaW4gbG9nIGxldmVsIGxvY2FsMC5lcnIgcXVpY2sgb24gcnRrMCBm
cm9tIDEyNy4wLjAuMC84IHRvIGFueQ0KYmxvY2sgaW4gbG9nIGxldmVsIGxvY2FsMC5lcnIgcXVp
Y2sgb24gcnRrMCBmcm9tIDE2OS4yNTQuMC4wLzE2IHRvIGFueQ0KYmxvY2sgaW4gbG9nIGxldmVs
IGxvY2FsMC5lcnIgcXVpY2sgb24gcnRrMCBmcm9tIDE5Mi4wLjAuMC8xNiB0byBhbnkNCmJsb2Nr
IGluIGxvZyBsZXZlbCBsb2NhbDAuZXJyIHF1aWNrIG9uIHJ0azAgZnJvbSAxOTIuMTY4LjEuMC8x
NiB0byBhbnkNCmJsb2NrIGluIGxvZy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