F
F
freemaxby2015-12-29 17:46:02
VMware
freemaxby, 2015-12-29 17:46:02

Network setup in CentOS 6.7 on VMWare?

Good afternoon.
Situation: There is a static IP. EXSI was installed on the physical server and a virtual machine was created.
CentOS 6.7 is installed on that machine in the future ISPmanager will be installed (to work with the company's website).
Vooot. The server is available locally, from any computer (at the office) I can connect to it via SSH.
CentOS has Internet access, updated and installed a couple of details.
The modem has ports 80,442,25,465,110,995,143,993,22. (SSMaker.ru/7935b31e)
What settings to make in CentOS so that you can connect to it "from outside".
Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-12-29
@Yestestvenno

goodcat32 has EXSI, it's not WMware player
freemaxby you need to configure iptables and open the necessary ports for certain ip
, for example, allow access to post 80 from outside with ip 77.10.10.10, but from the local network 10.0
.
cut off the rest
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -s 77.10.10.10 --dport 80 -j ACCEPT
-A INPUT -p udp -s 77.10.10.10 --dport 10000:20000 -j ACCEPT
#all local
-A INPUT -p tcp -s 10.0.0.0/24 --dport 80 -j ACCEPT
-A INPUT -p udp - s 10.0.0.0/24 --dport 10000:20000 -j ACCEPT
-P INPUT DROP
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host- prohibited
COMMIT
PS don't forget about 22 XD

F
falsebyte, 2015-12-29
@falsebyte

Most likely, you just need to forward ports on the "modem" to the IP address of the virtual machine with Centos.
Modem model?
Office subnet?
Centos IP address?
#ifconfig -a

A
Alex, 2015-12-30
@Belya-Dj

falsebyte - correctly said - most likely you have this VMka available from the router - if so, then just forward the ports on it for the IP of this VMka and do not forget to configure the firewall on CentOSe itself.
ESX has almost nothing to do with it :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question