All,
I have been fighting with this for a couple days now with no luck; I would greatly appreciate any help.
I have my server listening on 10.21.96.200 and my jails, which are ran from within IOCage are listening on 192.168.0.1/24.
I am able to telnet to 192.168.0.2 445 (samba) just to insure that the port is open, but am unable to telnet to 10.21.96.200 port 445. I have tried various different setups, but I'm hoping that someone can help point me in the right direction. I am providing various configurations here in the hopes that they will be helpful.
Thanks,
pf.conf:
rc.conf:
IOCage samba properties:
I have been fighting with this for a couple days now with no luck; I would greatly appreciate any help.
I have my server listening on 10.21.96.200 and my jails, which are ran from within IOCage are listening on 192.168.0.1/24.
I am able to telnet to 192.168.0.2 445 (samba) just to insure that the port is open, but am unable to telnet to 10.21.96.200 port 445. I have tried various different setups, but I'm hoping that someone can help point me in the right direction. I am providing various configurations here in the hopes that they will be helpful.
Thanks,
pf.conf:
Code:
if="igb0"
addr="10.21.96.200"
samba_addr="192.168.0.2"
dlna_addr="192.168.0.3"
unbound_addr="192.168.0.4"
#port groupings
tcp_services="{53 netbios-ns netbios-dgm netbios-ssn microsoft-ds 22}"
udp_services="{53 netbios-ns netbios-dgm netbios-ssn microsoft-ds}"
samba_services="{netbios-dgm netbios-ns netbios-ssn microsoft-ds}"
set skip on lo
set loginterface $if
scrub in all
#allow jails through
nat on $if inet from $samba_addr to any tag jail_samba -> $addr
nat on $if inet from $dlna_addr to any tag jail_dlna -> $addr
nat on $if inet from $unbound_addr to any tag jail_unbound -> $addr
#portforward to jails.
#unbound
rdr pass on $if proto tcp from any to $addr port 53 -> $unbound_addr port 53
rdr pass on $if proto udp from any to $addr port 53 -> $unbound_addr port 53
#samba
rdr pass on $if proto tcp from any to any port $samba_services -> $samba_addr
rdr pass on $if proto udp from any to any port $samba_services -> $samba_addr
#rules
pass quick on lo1
pass from igb0 to any keep state
#default policy: deny
antispoof quick for { $if lo }
block in all
#accept TCP ports.
pass in on $if proto tcp from any to any port $tcp_services
pass in on $if proto udp from any to any port $udp_services
rc.conf:
Code:
hostname="giraffe"
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
cloned_interfaces="lo1"
ipv4_addrs_lo1="192.168.0.1-9/29"
ifconfig_igb0="inet 10.21.96.200 netmask 0xffffff00"
defaultrouter="10.21.96.254"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
syslogd_flags="-c -ss"
pf_enable="YES"
pflog_enable="YES"
gateway_enable="yes"
IOCage samba properties:
Code:
interfaces:vnet0:bridge0,vnet1:bridge1
vnet:off
host_hostname:d85297a6-f118-11e5-8823-0cc47a73621c
hostname:lh-samba
ip4_addr:lo1|192.168.0.2
ip4_autostart:none
ip4_autoend:none
ip4_autosubnet:none
ip4_saddrsel:1
ip4:new
ip6_addr:none
ip6_saddrsel:1
ip6:new
defaultrouter:none
defaultrouter6:none
resolver:none
exec_fib:0
vnet0_mac:none
vnet1_mac:none
vnet2_mac:none
vnet3_mac:none
devfs_ruleset:4
mount_devfs:1
exec_start:/bin/sh /etc/rc
exec_stop:/bin/sh /etc/rc.shutdown
exec_prestart:/usr/bin/true
exec_prestop:/usr/bin/true
exec_poststop:/usr/bin/true
exec_poststart:/usr/bin/true
exec_clean:1
exec_timeout:60
stop_timeout:30
exec_jail_user:root
exec_system_jail_user:0
exec_system_user:root
mount_fdescfs:1
mount_procfs:0
enforce_statfs:2
children_max:0
login_flags:-f root
securelevel:2
allow_set_hostname:0
allow_sysvipc:0
allow_raw_sockets:0
allow_chflags:0
allow_mount:0
allow_mount_devfs:0
allow_mount_nullfs:0
allow_mount_procfs:0
allow_mount_tmpfs:0
allow_mount_zfs:0
allow_quotas:0
allow_socket_af:0
host_hostuuid:d85297a6-f118-11e5-8823-0cc47a73621c
memoryuse:8G:log
memorylocked:off
vmemoryuse:off
maxproc:off
cputime:off
pcpu:off
datasize:off
stacksize:off
coredumpsize:off
openfiles:off
pseudoterminals:off
swapuse:off
nthr:off
msgqqueued:off
msgqsize:off
nmsgq:off
nsemop:off
nshm:off
shmsize:off
wallclock:off
tag:samba
template:no
rlimits:off
boot:on
notes:none
owner:root
priority:99
last_started:2016-03-30_07:19:49
type:jail
hostid:00000000-0000-0000-0000-0cc47a73621c
cpuset:off
jail_zfs:off
jail_zfs_dataset:iocage/jails/d85297a6-f118-11e5-8823-0cc47a73621c/root/data
release:10.2-RELEASE
hack88:0
sync_stat:-
sync_target:none
sync_tgt_zpool:none
ftphost:-
ftpdir:-
gitlocation:https://github.com
branch:-