Re: port redirection with pf
pf.conf:2: syntax error pfctl: Syntax error in config file: pf rules not loaded rdr on $nic proto tcp from any to $my_ext port $portext - $int_host port $portint Your rdr rule however seems ok. Try using my version and report back.. Note that he example is a real-working rule on my firewall (OpenBSD with pf). cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl A Dutch community for helping newcomers on the hackerscene ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[solved]Re: port redirection with pf
On Wed, 14 Apr 2004 10:03:50 +0200 Remko Lodder [EMAIL PROTECTED] wrote: pf.conf:2: syntax error pfctl: Syntax error in config file: pf rules not loaded rdr on $nic proto tcp from any to $my_ext port $portext - $int_host port $portint Your rdr rule however seems ok. Try using my version and report back.. Note that he example is a real-working rule on my firewall (OpenBSD with pf). cheers Ok, I solved it. The interface I do the redirection for needs to be the same as the interface the traffic is going to. For example: rdr on tun0 proto tcp from any to tun0 port 21 - 192.168.0.200 port 21 Thanks for your help, Remko and BSD Neophyte ;-) Bye Marc ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
port redirection with pf
Hiho! :-) I'm trying to get port rediretion with pf(4) to work, but i won't work. I've googled and looked at the FAQ at www.openbsd.org/faq/pf, but there's nothing there that helps me. Problem is, I create a pf.conf with rdr on tun0 inet proto tcp from any to any port 21 - 192.168.0.200 port 21 (this is one single line in the config file ) When I try to enable the ruleset via pfctl -e -f ./pf.conf, pfctl says pf.conf:2: syntax error pfctl: Syntax error in config file: pf rules not loaded This does not only happen with my custom redirection rule, but also if I take example redirection rules from the pf.conf(5) man page. This is FreeBSD 5.2.1-p4 with pf 2.03 installed from ports, PFIL_HOOKS is in the kernel and the pf kernel modules are loaded. I'm sure I'm missing something obvious, but I'm unable to find it :-/ Thanks in advance ;-) Bye Marc ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]