ericwoud / buildR64arch

Build script for image for BananaPi R64 / R3 (R4) running Arch Linux
21 stars 5 forks source link

nftables.conf includes site-specific FTP server configuration #7

Closed ostrich closed 1 year ago

ostrich commented 1 year ago

Default /etc/nftables.conf on bpir3 includes these lines (I assume for the repo FTP server 😉)

define server = 192.168.1.2

...

    # allow ftp
    ip daddr $server tcp dport {ftp-data,ftp} counter packets 0 accept comment "ftp in"

...

    # Forward traffic from wan to a LAN server
    iifname $wan tcp dport {ftp-data,ftp} dnat ip to $server comment "Port forwarding to ftp server"
ericwoud commented 1 year ago

Indeed for the repo ftp server.

I will comment the lines and only keep them as example.

Thanks