port forwarding to linux virtual machine

kwythers

Bit poster
I am trying to run an experimental server using port 3838 on CentOS in a Parallels virtual machine. The idea is to have requests coming to the host IP on port 3838 be forwarded to the virtual machine's IP address on port 3838. I have tried adding the following the rule to the port forwarding rule under

Parallels Preferences -> Advanced -> Network Change Settings

port on mac port type virtual machine's IP address destination port
3838 TCP 10.211.54.4 3838

However, this is not working. I can still reach the host IP on port 80, which I want to keep in tact, so at least I haven't broken anything I want to keep. Am I barking up the wrong tree here?
 
Thanks.

1. under parallels "preferences" I advanced, I checked "enable IPv4 DHCP, Start address 10.211.55.20, end address: 10.211.55.254, and subnet mask 255.255.255.0

2. added port forwarding rule as 388, TCP, 10.211.55.2

3. ran the "setup" too -> networkd config -> device config, for eth0 l used static IP as 10.211.55.2, netmask of 255.255.255.0 and gateway IP of 10.255.55.20

running ifconfig gives:

[kirkw@localhost ~]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1C:42:5B:86:04
inet addr:10.211.55.22 Bcast:10.211.55.255 Mask:255.255.255.0
inet6 addr: fdb2:2c26:f4e4:0:21c:42ff:fe5b:8604/64 Scope:Global
inet6 addr: fe80::21c:42ff:fe5b:8604/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29335 errors:0 dropped:0 overruns:0 frame:0
TX packets:8337 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41246862 (39.3 MiB) TX bytes:513807 (501.7 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:903 errors:0 dropped:0 overruns:0 frame:0
TX packets:903 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2416606 (2.3 MiB) TX bytes:2416606 (2.3 MiB)

virbr0 Link encap:Ethernet HWaddr 52:54:00:6E:8F:0F
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

I can connect to the server from within centos if I type into firefox 10.211.55.2:3838, but I can not reach the server from outside cnetos.

Thanks agian for any suggestions.
 
Back
Top