Hello everyone,
I'm new in the word of FreeBSD and more on firewall ...
I'm struggle with building a good pf.conf in order to run plex media server inside a jail.
I don't know if I'm in the right topic, but after many try I guess is due to pf rules.
So here is my /etc/rc.conf
here my /etc/pf.conf
My
And finally my jails :
For symptom, when I go on my browser and tap 192.168.2.21:32400/web I can sign up plex but plex can't find my server.
Have you any idea, on all stupid things I do ?
I thank you in advance for your help
I'm new in the word of FreeBSD and more on firewall ...
I'm struggle with building a good pf.conf in order to run plex media server inside a jail.
I don't know if I'm in the right topic, but after many try I guess is due to pf rules.
So here is my /etc/rc.conf
Code:
hostname="MFserver"
##############Internet############
defaultrouter="192.168.2.1"
ifconfig_re0="DHCP"
sshd_enable="YES"
ntpd_enable="YES"
##############Stockage############
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
#############Firewall#############
pf_enable="YES"
pf_rules="/etc/pf.conf"
pf_flags=""
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
pflog_flags=""
###########Services################
noip_enable="YES"
ezjail_enable="YES"
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
##########Cloned loopback#######
cloned_interfaces="lo1"
ifconfig_lo1_alias0="inet 192.168.2.21 netmask 255.255.255.255"
gateway_enable="YES"
local_unbound_enable="YES"
here my /etc/pf.conf
Code:
ext_if="re0"
int_if="lo1"
tcp_pass = "{ 22 25 53 80 110 123 }"
udp_pass = "{ 53 110 631 }"
SSH= "{ 22 }"
IP_PUB="192.168.2.16"
IP_JAIL_plex="192.168.2.21"
PORT_WWW="{32400}"
scrub in all
pass out proto tcp to port $SSH
pass in on $ext_if proto udp to any port $udp_pass keep state
pass in quick on $ext_if proto tcp to any port 32400 keep state
pass in on $int_if from $int_if:network to ($int_if) keep state
My
ifconfig
Code:
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether xx:xx:xx:xx:xx:xx
inet 192.168.2.16 netmask 0xffffff00 broadcast 192.168.2.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 192.168.2.21 netmask 0xffffffff
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
And finally my jails :
Code:
JID IP Address Hostname Path
1 192.168.2.21 plex /usr/jails/plex
For symptom, when I go on my browser and tap 192.168.2.21:32400/web I can sign up plex but plex can't find my server.
Have you any idea, on all stupid things I do ?
I thank you in advance for your help
Last edited by a moderator: