List Info

Thread: REDIRECTING using the NAT table




REDIRECTING using the NAT table
user name
2006-06-24 23:28:49
Hi,

I am new to FreeBSD and PF but was wondering how I could do
using PF a rule from iptables on Linux.

The rule using iptables in Linux is:
iptables -t nat -A PREROUTING -p udp --dport 3322 -j
REDIRECT --to-ports 3323

I would like to know how you perform the same operation
using PF.

Any advice would be very appreciated.

Anthony
_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"
REDIRECTING using the NAT table
user name
2006-06-25 07:09:11
 
> Hi,
> 
> I am new to FreeBSD and PF but was wondering how I
could do 
> using PF a rule from iptables on Linux.
> 
> The rule using iptables in Linux is:
> iptables -t nat -A PREROUTING -p udp --dport 3322 -j
REDIRECT 
> --to-ports 3323
> 
> I would like to know how you perform the same operation
using PF.
> 

http://www.ope
nbsd.org/faq/pf/rdr.html



Greg

_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"
Array
user name
1969-12-31 18:00:00
> Hi,
> 
> I am new to FreeBSD and PF but was wondering how I
could do using PF
> a rule from iptables on Linux.
> 
> The rule using iptables in Linux is:
> iptables -t nat -A PREROUTING -p udp --dport 3322 -j
REDIRECT
> --to-ports 3323

rdr on $ext_if proto tcp from any to $ext_if port 86 ->
10.0.1.10 port
80

$ext_if is the interface facing the net, or I suppose the
side from
that you want to modify. if your looking to just change
port, I suppose
you could remove the IP at the end. Hope this helps.

      Brandon
_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )