Hi,
System: Debian Squeeze (node+VMs) + OpenVZ + 2xISPC3 (3.0.4.6, one VM-node and ISPC3 others) close to HowTos
http://www.howtoforge.com/installing...g-3-debian-6.0
http://www.howtoforge.com/virtual-mu...th-ispconfig-3
(all with default ports)
All good on intranet... but.....
Long time back I started to use Pre-routing for external ports to have 2+ (physical) machines running under same IP:
http://www.howtoforge.com/forums/showthread.php?t=55180
Now I have tried to replicate idea to VMs, but phasing interesting

problem - OpenVZ seems to forward my request to wrong IP (always node).
- ADSL-Router Port forward
5000-5099 => 192.168.xxx.1 (node)
5100-5199 => 192.168.xxx.2 (1st VM for ISPC3)
etc.
My idea was to Pre-route ports to original at high level (Node Firewall pre-chain), so I added to Node's firewall /etc/Bastille/firewall.d/pre-chain-split.sh test rules as root:
Quote:
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 5002 -j REDIRECT --to-ports 22
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 5003 -j REDIRECT --to-ports 8080
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 5102 -j REDIRECT --to-ports 22
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 5103 -j REDIRECT --to-ports 8080
|
and then restarted firewall
Quote:
|
/etc/init.d/bastille-firewall restart
|
Now on client, all OK with
but when
no success. but I changing user name
i.e. I logged in to Node, not to Server
Same for ISPConfig3-console, all
https://example.com:5103 (ment for Server goes to Node).
I tried to look into OpenVZ-wiki, but could not find yet Pre-routing advice
http://wiki.openvz.org/Setting_up_an_iptables_firewall
Also if I go ahead with "Setting up a HN-based firewall"-way, any special things I have to consider due ISPC3? Obviously VM-conf:s have to be cerated manually (which I wanted to avoid by using above shortcut).
Recent comments
5 hours 20 min ago
14 hours 48 min ago
15 hours 38 min ago
19 hours 11 min ago
23 hours 35 min ago
23 hours 57 min ago
1 day 2 hours ago
1 day 12 hours ago
1 day 17 hours ago
1 day 18 hours ago