VMWare ESXi, Zerotier on OPENWRT, PFSense, Mikrotik and Advance Port Forwarding NAT

Mau paham tentang VMWare ESXi, Zerotier on OPENWRT, PFSense, Mikrotik and Advance Port Forwarding NAT, hanya disiniaja

Nov 28, 2023 - 16:24
Nov 28, 2023 - 23:02
 0  1.1k

Setup ZeroTier on router (OPENWRT)
Installation
SSH to the router. In my case, ip router/openwrt is = 192.168.20.2 and port for SSH = 2224

Login as root. Then execute the following commands to install ZeroTier package:

opkg update

opkg install zerotier

opkg install ipset

open https://my.zerotier.com and sigin

IF you don’t have network configuration on zerotier, you can create.

Open WinSCP for simple editing file zerotier configuration with file protocol SCP.

Configuration
ZeroTier

config zerotier 'sample_config'

option enabled '1'

          list join 'your network ID'

You should edit the configuration file /etc/config/zerotier to enable ZeroTier
and join into a network. It looks like:

# cat /etc/config/zerotier

config zerotier 'sample_config'

option enabled '1'

          list join 'your network ID'

Please replace the code with your own Network ID.

Setup FIREWALL
On WebUI openwrt you can following on pictures

You should edit on end line the configuration file /etc/config/firewall to setup firewall configurations. It looks like:

config zone

          option name 'zerotiervpn'

          option input 'ACCEPT'

          option output 'ACCEPT'

          option forward 'ACCEPT'

          option masq '1'

          list network 'zt'

 

config forwarding

          option src 'zerotiervpn'

          option dest 'lan'

 

config forwarding

          option src 'lan'

          option dest 'zerotiervpn'

 

config rule

          option name 'zerotier'

          list proto 'all'

          option src 'zerotiervpn'

          option dest 'lan'

          option target 'ACCEPT'

Start ZeroTier Service

/etc/init.d/zerotier restart

/etc/init.d/firewall restart

Setup interfaces

If operations success then Physical IP is your  Public IP.

PORT FORWARDING FOR VMWare ESxi
Setting for your WAN connections to Gateway OPENWRT

On mycase my network configuration with Mikrotik Hotspot, you can setup dns static for simple host to your vm esxi.
Get your Private IP from zerotier

Then setup to your mikrotik 

Create new with your private ip on zerotier

Cek connection to your private ip from zerotier

Cek connections with new host

Setup forwarding for esxi port from OPENWRT

Connect your host with vSphere

This for details my Network Configurations, physically it is assumed to be like this

FORWARDING FOR PFSENSE
Setup on openwrt

Make forwarding/NAT on Pfsense
Create alias for simple configuration

Create NAT

Then setup to your DNS Static on your local mikrotik hotspot with ip private zerotier

Check with internet connections

Port forward/NAT for WINBOX

create NAT on PFSENSE

Then setup to your DNS Static on your local mikrotik hotspot with ip private zerotier

Connect winbox by internet connections

How about Remote Desktop Connections with hotspot client.

setup nat from mikrotik

setup dns static from local with private ip zerotier

and test your internet connection to Remote Desktop

OK Finish.

You can watch this lesson on YouTube to understand better. Don't forget to help our channel to develope further so that, there is nothing that can't be done except https://disiniaja.id.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow