Hello everyone,
I have freebsd+pf machine. Already configured NAT. I am installed new FTP server in our LAN. From local network i can log in to this server and everythink is fine. But from outside my gateway server redirects connection to FTP server. Login screen appears, but after login with credentials nothing happened. Cannot see any data, only blank page. How can i fix this? Thank you
This is my pf.conf:
I have freebsd+pf machine. Already configured NAT. I am installed new FTP server in our LAN. From local network i can log in to this server and everythink is fine. But from outside my gateway server redirects connection to FTP server. Login screen appears, but after login with credentials nothing happened. Cannot see any data, only blank page. How can i fix this? Thank you
This is my pf.conf:
Code:
#normalization
scrub in all
##NAT and RDR start
nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
###Redirect ftp traffic
rdr on $ext_if proto tcp from any to any port 21 -> 12.0.1.217
nat on $ext_if from 192.168.99.128/25 to any port $safe_nat_ports -> $ext_if
nat on $ext_if from 12.0.0.0/21 to any port $safe_nat_ports -> $ext_if
nat on $ext_if from <clients> to any -> $ext_ip
pass in all
block out quick on ext_if proto tcp to port 445
block out quick on ext_if proto udp to port 445
pass out all
antispoof quick for { lo $int_if }
# allow pfsync over the internal nics connected by a cross cable
pass quick on $sync_if proto pfsync
pass quick on $int_if proto carp
pass quick on $ext_if proto carp
pass quick on $vlan1000_if proto carp
#pass in quick on $ext_if proto tcp to ($ext_if) port 5631
pass in quick on $int_if proto tcp to 12.0.0.1 port 53
pass in quick on $int_if proto udp to 12.0.0.1 port 53
pass in quick on $int_if proto tcp to 12.0.0.1 port 8080
pass in quick on $int_if inet proto icmp all
pass in quick on $ext_if inet proto icmp all
pass in quick on $vlan1000_if inet proto icmp all