Reply To: Can I do this with virtual servers?

Home Page Forums Network Management ZeroShell Can I do this with virtual servers? Reply To: Can I do this with virtual servers?

#47598

ppalias
Member

Hi,
I suggest that you specified the source and destination interfaces.
This is my working config

root@zeroshell root> iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 649K packets, 58M bytes)
pkts bytes target prot opt in out source destination
3652 219K DNAT tcp -- ppp1 any anywhere anywhere tcp dpt:ndmp to:10.14.149.31:10000
0 0 DNAT tcp -- ppp1 any anywhere anywhere tcp dpt:scp-config to:10.14.149.31:10001
0 0 DNAT tcp -- ppp0 any anywhere anywhere tcp dpt:rockwell-csp2 to:10.14.149.4:2222
1 48 DNAT tcp -- ppp1 any anywhere anywhere tcp dpt:rockwell-csp2 to:10.14.149.4:2222
0 0 DNAT tcp -- ppp0 any anywhere anywhere tcp dpt:rockwell-csp1 to:10.14.149.62:2221
0 0 DNAT tcp -- ppp1 any anywhere anywhere tcp dpt:rockwell-csp1 to:10.14.149.62:2221
86 4888 DNAT tcp -- ppp0 any anywhere anywhere tcp dpt:http to:10.14.149.4:80
81 4340 DNAT tcp -- ppp1 any anywhere anywhere tcp dpt:http to:10.14.149.4:80
1358 71169 DNAT tcp -- ppp0 any anywhere anywhere tcp dpt:6881 to:10.14.149.3:6881
29376 3790K DNAT udp -- ppp0 any anywhere anywhere udp dpt:6881 to:10.14.149.3:6881
4648 238K DNAT tcp -- ppp1 any anywhere anywhere tcp dpt:6881 to:10.14.149.3:6881
851K 110M DNAT udp -- ppp1 any anywhere anywhere udp dpt:6881 to:10.14.149.3:6881
10695 642K DNAT tcp -- ppp0 any anywhere anywhere tcp dpt:10002 to:10.14.149.32:10002
0 0 DNAT tcp -- ppp0 any anywhere anywhere tcp dpt:ibm-mqseries to:10.14.149.3:1414
0 0 DNAT tcp -- ppp1 any anywhere anywhere tcp dpt:ibm-mqseries to:10.14.149.3:1414

Chain POSTROUTING (policy ACCEPT 907K packets, 116M bytes)
pkts bytes target prot opt in out source destination
1687K 185M SNATVS all -- any any anywhere anywhere
211K 18M MASQUERADE all -- any ppp0 anywhere anywhere
569K 52M MASQUERADE all -- any ppp1 anywhere anywhere