ipfw rule for aliased ip virtual hosts
Matthew McGehrin
mcgehrin at reverse.net
Sun Jan 18 08:20:48 PST 2004
1. How are you adding aliases? using /etc/rc.conf or direct?
Using rc.conf, the format is:
ifconfig_rl0_alias0="inet 192.168.2.3 netmask 255.255.255.255"
ifconfig_rl0_alias1="inet 192.168.2.4 netmask 255.255.255.255"
ifconfig_rl0_alias2="inet 192.168.2.5 netmask 255.255.255.255"
Using rc.local the format is:
ifconfig rl0 192.168.2.3 netmask 255.255.255.255 alias
ifconfig rl0 192.168.2.4 netmask 255.255.255.255 alias
ifconfig rl0 192.168.2.5 netmask 255.255.255.255 alias
2. Can you ping or access other services to your vhost ip?
i.e.: ping 192.168.2.3 or telnet 192.168.2.3 22
3. Please post the output of 'ipfw list' if your still stuck.
Thanks
----- Original Message -----
From: "Greg Robinson" <greg at ltcc.com>
To: <freebsd-ipfw at freebsd.org>
Sent: Sunday, January 18, 2004 9:44 AM
Subject: ipfw rule for aliased ip virtual hosts
> Fxp0 is configured as XX.XX.XX.197, and 198,199 are aliased.
> Out of the box rc.firewall "simple" permits the web site configured as
> 197 to function yet the others do not.
> This box is running named, sendmail, and apache at this point.
> Want it to support six web sites all with their own mail and web pages.
More information about the freebsd-ipfw
mailing list