Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

vmware with freebsd as a router

Posted on 2012-09-14
6
Medium Priority
?
1,081 Views
Last Modified: 2016-02-11
Hi-

I am trying to setup a lab in VMware.

I have 2 windows servers on VMnet2:
172.22.1.10
172.22.1.11

Another Windows server on VMnet3:
172.22.2.10

And a freebsd system setup for routing with 3 nic's:
192.168.0.196 - my home network
172.22.1.1 - on VMnet2
172.22.2.1 - on VMnet3

On the FreeBSD router I can ping:
172.22.1.10 - VMnet2
172.22.1.11 - VMnet2
192.168.0.1 - Bridged - Home network
74.125.226.5 - Google - Through Home network - Bridged

On the FreeBSD router I can NOT ping:
172.22.2.10 - VMnet2

On the VMnet2 Windows Servers I can ping:
172.22.1.1 - Freebsd Router  - VMnet2
172.22.2.1 - Freebsd Router  - VMnet3

On the VMnet2 Windows Servers I can NOT ping:
172.22.2.10 - Windows Server - VMnet3
192.168.0.1 - Bridged - Home network

On the VMnet3 Windows Server I can ping:
172.22.1.10 - Windows Server - VMnet2
172.22.1.11 - Windows Server - VMnet2
172.22.1.1 - Freebsd Router  - VMnet2
172.22.2.1 - Freebsd Router  - VMnet3

On the VMnet3 Windows Server I can NOT ping:
192.168.0.1 - Bridged - Home network

I think it has to do with my freebsd config (see below)

rc.cong--------------------------------------------------------------------------------------------------------------------

hostname="router"
#LAN 0
ifconfig_em0="inet 192.168.0.196 netmask 255.255.255.0"
sshd_enable="YES"

# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"


### LAN 1
ifconfig_em1="inet 172.22.1.1 netmask 255.255.255.0"

### LAN 2
ifconfig_em2="inet 172.22.2.1 netmask 255.255.255.0"

### Default Route
defaultrouter="192.168.0.1"

ipnat_enable="YES"

gateway_enable="YES"

ipnat.rules-----------------------------------------------------------------------------------------------------------
map tun0 172.22.0.0/16 -> 0.0.0.0/32 portmap tcp/udp 40000:65000
map tun0 172.22.0.0/16 -> 0.0.0.0/32

-----------------------------------------------------------------------------------------------------------------------------

Am I missing something?

Thanks in advance
0
Comment
Question by:doctor069
6 Comments
 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 38401041
You want this router to work or any other router appliance is OK for your work?

There are few free ones available.
0
 
LVL 125
ID: 38401408
You could use Freesco, if that's not the one you are using.

http://www.freesco.org/
0
 
LVL 26

Expert Comment

by:Lionel MM
ID: 38401576
will you please run tracert (instead of ping) to the addresses and see if that gives you any ideas as to where the hangup is, where the traffic stops--that should give us a clue as where to look for the problem.
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 38401583
Please add networking/Routing as a category tho this question.
0
 

Accepted Solution

by:
doctor069 earned 0 total points
ID: 38556782
Turned out the be windows firewall
0
 

Author Closing Comment

by:doctor069
ID: 38571054
No user comments helped
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses
Course of the Month15 days, 13 hours left to enroll

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question