Prawdopodobnie w moim przypadku trzeba było zrobić NAT.
Mój pf.conf
nat on em0 from 192.168.1.2/24 to any -> 188.165.*.*
(moje IP specjalnie zamaskowałem na forum:))
Mój ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
ether 00:25:90:12:37:a0
inet 188.165.*.* netmask 0xffffff00 broadcast 188.165.*.*
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
ether 00:25:90:12:37:a1
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
Mój resolv.conf
search ls
nameserver ns14.ovh.net.
nameserver dns14.ovh.net.
DNSy sprawdziłem komendą
nslookup 188.165.*.*
Jedno co mnie niepokoi:
pfctl -e
No ALTQ support in kernel
ALTQ related functions disabled
pfctl: pf already enabled
Załadowałem moduł pf:
kldstat
Id Refs Address Size Name
1 18 0xffffffff80100000 d6aa98 kernel
2 1 0xffffffff80e6b000 21110 geom_mirror.ko
3 1 0xffffffff80e8d000 90d0 geom_stripe.ko
4 1 0xffffffff80e97000 5c5d0 if_em.ko
5 1 0xffffffff80ef4000 15e0 accf_http.ko
6 1 0xffffffff81022000 2bd41 pf.ko
7 1 0xffffffff8104e000 1f3e nullfs.ko
I jeszcze mój rc.conf z hosta:
ifconfig_em0_alias0="192.168.1.2"
######## JAILS #############
## global settings
jail_enable="yes"
jail_list="ls"
jail_set_hostname_allow="YES"
jail_socket_unixiproute_only="YES"
jail_sysvipc_allow="NO"
## sshd
jail_ls_rootdir="/home/jails/ls"
jail_ls_hostname="ls"
jail_ls="192.168.1.2"
jail_ls_exec_start="/bin/sh /etc/rc"
jail_ls_exec_stop="/bin/sh /etc/rc.shutdown"
jail_ls_devfs_enable="YES"
jail_ls_procfs_enable="YES"
I z jaila:
network_interfaces=""
sendmail_enable="NONE"
sshd_enable="YES"
rpcbind_enable="NO"
Może teraz ktoś będzie w stanie powiedzieć mi co jest nie tak?