*SOLVED* Masquerade and OVZ in IPCOP ? [message #7599] |
Wed, 18 October 2006 17:02 |
gwondaleya
Messages: 6 Registered: October 2006
|
Junior Member |
|
|
Hello,
I own an old box (p2 266, yes i know it 's really old, but wattage is below 50W) on which i perform firewalling using IPCOP.
I want to host on the same machine a web server (yes i know it is not a so good idea, but i have only this box for hosting and can't afford to have two computer running).
i have choosed to be "secure "to use a kernel with virtualization using openvz. i have succesfully "upgraded" the kernel of the ipcop to 2.6.16-026test18 with all the vzctl utils and so on.
i am able to perform all the filtering etc with iptables on the host (hardware node) except the following commands which ends up with : invalid argument, i don't know why
iptables -t nat -A REDNAT -o eth2 -j MASQUERADE
and also:
iptables -t nat -A POSTROUTING -m mark --mark 1 -j SNAT \
--to-source xx.yy.zz.ww
FYI iptables V1.2.11
Is there someone her which can help me?
Thanks a lot
Jo
[Updated on: Thu, 19 October 2006 14:11] by Moderator Report message to a moderator
|
|
|
|
|
|
|
Re: Masquerade and OVZ in IPCOP ? [message #7651 is a reply to message #7617] |
Thu, 19 October 2006 13:45 |
gwondaleya
Messages: 6 Registered: October 2006
|
Junior Member |
|
|
Hello
Yes works now, but with the updated iptable.
Yes it is strnage to me too, since the same iptable version and the latest ovz kernel, on another machine (Mdk community) do not show the error.
Another question, OOT:
Since i have changed to the ovz kernel and all other stuff with iptable in my ipcop box, one of my script showing the connections stop working. the reason is that /proc/net/ip_conntrack is not readable by other, and i am unable to make it readable by other or to change any permission on it (as root)
is there a way to tell to make this file readable by other (ugo+r )?
Thanks
Jo
|
|
|
|
Re: Masquerade and OVZ in IPCOP ? [message #7656 is a reply to message #7653] |
Thu, 19 October 2006 14:00 |
gwondaleya
Messages: 6 Registered: October 2006
|
Junior Member |
|
|
Thanks for the tips .
I want to make it readable by "other" because there is a web script in ipcop which acces this file to get information on what is connected, to which interface etc..
but well , it is not very "important" for now.
Thanks alot.
|
|
|
|