freebsd + pf + rdr port problema

Fórumok

freebsd + pf + rdr port problema

Hozzászólások

Hellotok!

Egy olyan problemam van, hogy nem megy a port forwarding.
Adott egy gateway->server,kliensek.
A serveren futnak az alkalmazasok(http,ssh,irc) es ide kene redirectolni.

Itt az en tuzfalam:

# macros
int_if = "ed2"
ext_if = "tun0"
neux = "192.168.1.2"

tcp_services = "{ 80, 6667, 21, 2200 }"

# nat/rdr
nat on $ext_if from $int_if:network to any -> ($ext_if)
# http,ssh,irc,ftp to neux

rdr on tun0 proto tcp from any to any port 80 -> 192.168.1.2
rdr on tun0 proto tcp from any to any port 21 -> $neux
rdr on tun0 proto tcp from any to any port 6667 -> $neux
rdr on tun0 proto tcp from any to any port 2200 -> $neux

# basic rulez
pass out on $ext_if proto {tcp, udp, icmp} all keep state
pass in on $ext_if all keep state
pass out on $int_if from any to $int_if:network keep state
pass in on $int_if from $int_if:network to any keep state

pass in on $ext_if proto tcp from any to any port 80 flags S/SA
pass in on $ext_if proto tcp from any to any port 21 flags S/SA
pass in on $ext_if proto tcp from any to any port 6667 flags S/SA
pass in on $ext_if proto tcp from any to any port 2200 flags S/SA

Mit ronthattam el? Ha vki tud, akkor legyszi segitsen

Koszi dozen

hi!

Tudnatok valamit ajanlani portforwardingra? Esetleg kulso program?

bye dozen

[quote:5896c66434="dozen"]hi!

Tudnatok valamit ajanlani portforwardingra? Esetleg kulso program?

bye dozen

Szerintem ipf+ipnat.