Manage only on em0 is it really necessary with multi ip ?
bryn1u85 .
m.bryn1u at gmail.com
Tue Jul 8 07:05:46 UTC 2014
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 !
More information about the freebsd-pf
mailing list