OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Basic routing with VMS. 1 OpnSense as firewall and one VM on an internal net
« previous next »
  • Print
Pages: [1]

Author Topic: Basic routing with VMS. 1 OpnSense as firewall and one VM on an internal net  (Read 4310 times)

DenisArnaud

  • Newbie
  • *
  • Posts: 2
  • Karma: 1
    • View Profile
Basic routing with VMS. 1 OpnSense as firewall and one VM on an internal net
« on: June 13, 2019, 01:11:03 am »
I am a noob, so I guess I am doing something wrong.
Seems like a common issue but several hours of testing/reading forum inputs led to no resolution.

Setup/goal is:
All machines running as VirtualBox VM. I want to run OpnSense as a router firewall with WAN access and LAN to a Linux. Eventually I will run multiple VM on an internal network separated by the firewall/router.
Linux machine is running an internal network and its traffic must go through the firewall/router.

Machine 1:
OpnSense 19.1.4
Interface 1: eth0  using static IP 192.168.1.1/24    LAN  (VirtualBox adapter set to Internal network)
Interface 2: eth1 using DHCP 10.0.3.15/24    WAN  (VirtualBox adapter set to NAT)

Machine 2:
Interface: eth0 using Static IP 192.168.1.100 LAN  (VirtualBox adapter set to Internal network)

Problem:
Following default and many forum comments. I should just install and basic rules are supposed to allow traffic from machine 2 to the Internet (on the WAN)

Tests:
Machine 1 can ping both Machine 1 and resources on the web.
Machine 2 can ping Machine 1 and connect to opnsense web Gui on Machine 1.
Machine 2 CANNOT access anything further than Machine 1.

Rules in place:
Only the default install rules
No VLAN, no bridge, no VPN

Regards

« Last Edit: June 13, 2019, 06:28:46 am by DenisArnaud »
Logged

GOCE

  • Newbie
  • *
  • Posts: 26
  • Karma: 1
    • View Profile
Re: Basic routing with VMS. 1 OpnSense as firewall and one VM on an internal net
« Reply #1 on: June 13, 2019, 07:51:37 am »
1. Your Machine 2 needs to have the default gateway set to your OPNsense LAN interface (192.168.1.1)

2. Your Machine 2 must be able to reach a DNS Server (your ISP or a public one like 1.1.1.1)


Usually (default installation) there shold be a DHCP service on the LAN interface allready running and provide your clients with IP addresses, default gateway and DNS server settings.

Regards
Logged

DenisArnaud

  • Newbie
  • *
  • Posts: 2
  • Karma: 1
    • View Profile
Re: Basic routing with VMS. 1 OpnSense as firewall and one VM on an internal net
« Reply #2 on: June 13, 2019, 09:32:33 am »
Thanks GOCE.
I had a typo on my default gw.
Once corrected all is working as I wanted.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Basic routing with VMS. 1 OpnSense as firewall and one VM on an internal net
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2