› Forums › Network Management › ZeroShell › Can I do this with virtual servers?
- This topic is empty.
-
AuthorPosts
-
February 10, 2009 at 5:43 pm #41464
Dolphinus
MemberHi, I’ve just finished configuring my Zeroshell Box and my access point, but I want to know if it is possible to access my AP just as I access my zeroshell, I mean, I can access remotely my zeroshell just by entering my public address, and I want to do that as well with my AP, just using another port obviously.
Zeroshell ETH00 IP: 192.168.0.1
AP IP: 192.168.0.254My AP is a TT2400 and there’s no port configuration so it has to be port 80 but I can’t seem to get virtual servers to work :s any ideas why?
this is my Virtual Servers Config.Chain PREROUTING (policy ACCEPT 513 packets, 39266 bytes)
pkts bytes target prot opt in out source destination
40 1900 CapPort all — * * 0.0.0.0/0 0.0.0.0/0
13 624 DNAT tcp — * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:81 to:192.168.0.254:80Chain POSTROUTING (policy ACCEPT 76 packets, 9596 bytes)
pkts bytes target prot opt in out source destination
301 184K SNATVS all — * * 0.0.0.0/0 0.0.0.0/0
225 175K MASQUERADE all — * ETH01 0.0.0.0/0 0.0.0.0/0Chain SNATVS (1 references)
pkts bytes target prot opt in out source destinationThanks in advance. Best Regards.
February 12, 2009 at 7:34 am #47598ppalias
MemberHi,
I suggest that you specified the source and destination interfaces.
This is my working configroot@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 -
AuthorPosts
- You must be logged in to reply to this topic.