OpenVZ Forum


Home » General » Support » Firewall on boot
Re: Firewall on boot [message #3013 is a reply to message #3011] Sun, 07 May 2006 14:20 Go to previous messageGo to previous message
ferp2 is currently offline  ferp2
Messages: 29
Registered: May 2006
Junior Member
Here is the auto generated /etc/network/interfaces

===========================================
# This configuration file is auto-generated.
# WARNING: Do not edit this file, otherwise your changes will be lost.
# Please edit template /etc/network/interfaces.template instead.

# Auto generated venet0 interfaces
auto venet0 lo
iface venet0 inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
up route add -net 191.255.255.1 netmask 255.255.255.255 dev venet0
up route add default gw 191.255.255.1
iface lo inet loopback

auto venet0:0
iface venet0:0 inet static
address 192.168.0.102
netmask 255.255.255.255
broadcast 0.0.0.0
###pre-up /etc/firewall.sh###
===========================================

It is impossible to add "pre-up /etc/firewall.sh", to /etc/interfaces.template so that it appears after "broadcast 0.0.0.0" in the auto generated /etc/network/interfaces. This is because the contents of /etc/network/interfaces.template get added **before** the auto generated content of /etc/network/interfaces takes place. This causes the venet0:0 to malfunction.

Thank you
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Config a custom Kernel from the given src.rpm
Next Topic: VPS Problem -- Users logged in
Goto Forum:
  


Current Time: Thu Aug 08 00:30:28 GMT 2024

Total time taken to generate the page: 0.02689 seconds