Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2014 09:05:45 +0200
From:      "bryn1u85 ." <m.bryn1u@gmail.com>
To:        freebsd-pf@freebsd.org
Subject:   Manage only on em0 is it really necessary with multi ip ?
Message-ID:  <CAHsHv-YuTH-sT=do-rCBo%2Biw5qZW5YErc=YwRE2Hr0Cf7K44Tw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hey,

I have a server in OVH and got 2 failover ips. I have been trying use it
exemple on irc.
My /etc/pf.conf

ip_pub="94.23.237.216"
ip_jail="{ 188.165.139.63, 91.121.239.228}"

net_jail="192.168.0.0/24"

### NAT and Redirection rules are first match ###

nat on em0 from $net_jail to any -> $ip_pub static-port

### RDR Redirection ###
###RDR for jail (Oksymoron)

rdr on em0 proto tcp from any to $ip_pub port 21 -> $ip_jail port 21
rdr on em0 proto tcp from any to $ip_pub port 80 -> $ip_jail port 80
rdr on em0 proto tcp from any to $ip_pub port 113 -> $ip_jail port 113
rdr on em0 proto tcp from any to $ip_pub port 31337 -> $ip_jail port 31337
rdr on em0 proto tcp from any to $ip_pub port 30000:50000 -> $ip_jail port
30000:50000

My
/etc/jail.conf
Oksymoron {
        path = /jails/Oksymoron;
        mount.devfs;
        #allow.mount;
        #mount;
        host.hostname = Oksymoron.edu.pl;
        ip4.addr = 188.165.139.63, 91.121.239.228;
        interface = lo1;
        securelevel = 3;
        exec.start = "/bin/sh /etc/rc";
        exec.stop = "/bin/sh /etc/rc.shutdown";
}

Only ip which works is the first 188.165.139.63, how can i use second ip
for the same jail and for the same ports ? For example on ircnet.

Thanks !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHsHv-YuTH-sT=do-rCBo%2Biw5qZW5YErc=YwRE2Hr0Cf7K44Tw>