Skip to contentSkip to conversation

Virtual Hosts

DISCUSSION Uwe Eisner 2 participants 2 messages May 31, 2002

lore
Share & tools
lore

Uwe Eisner

author
#0 lore raw

Hi @ all,

I am starting set up a iptables based firewall (iptables v1.2.5) on a Suse Linux 8.0prof machine. I created a virtual host an eth0, which is eth0:1.

The situation is, that the firewall is a zebra OSPFD-Router (verson 0.92a), too. And the machine needs a public IP-Address at the internal interface as well. How ever, I would like to use internal ip-stack at my network, wherefor I need a virtual host, needn't I?

I have same roule at iptables like:
iptables -A FORWARD -d 192.168.0.0/16 -i eth0:1 -j ACCEPT

The script stoped with following error:
Warning: wierd chracter in interface 'eth0:1' (No aliases, :, ! or *)

In same list, it is mentioned, that it works, other guys say, it works not..

Hope sameone can help me..

Thx and best reguards
Uwe Eisner

#1 lore raw
Quoted 8 lines · Uwe Eisner

Hi @ all,

I am starting set up a iptables based firewall (iptables v1.2.5) on a Suse Linux 8.0prof machine.
I created a virtual host an eth0, which is eth0:1.

The situation is, that the firewall is a zebra OSPFD-Router (verson 0.92a), too. And the machine needs a public IP-Address at the internal

Why?

Quoted 2 lines

interface as well. How ever, I would like to use internal ip-stack at my network, wherefor I need a virtual host, needn't I?

You can use iproute2 to set multiple ip's on an interface.

Quoted 6 lines

I have same roule at iptables like:
iptables -A FORWARD -d 192.168.0.0/16 -i eth0:1 -j ACCEPT

The script stoped with following error:
Warning: wierd chracter in interface 'eth0:1' (No aliases, :, ! or *)

I believe that the newer iptables versions do not have this problem.

Ramin

Quoted 8 lines

In same list, it is mentioned, that it works, other guys say, it works not..

Hope sameone can help me..

Thx and best reguards
Uwe Eisner