OPNsense Forum

English Forums => General Discussion => Topic started by: randBlock553 on September 03, 2024, 04:57:14 PM

Title: Unable to connect directly through Ethernet between OPNsense device and a laptop
Post by: randBlock553 on September 03, 2024, 04:57:14 PM
I have installed OPNsense on my firewall device, it successfully boots up and I can see below config shown:

LAN (igc0) -> v4: 192.18.1.1/24
                     v6: ipv6 stuff
WAN (igc1) -> v4/DHCP4: <externalIP>
                 -> v6 ipv6 stuff

Now after this setup, I have connected an ethernet cable between my opnsense device and a laptop.

The laptop I'm running is arch linux with network manager. Here is my ethernet connection setup config:

IPv6: Disabled

IPv4: Manual
- Address: 192.168.1.3
- Netmask: 24
- Gateway: 192.168.1.1
- DNS Servers: 192.168.1.1

Now if I click on 'Connect', it goes and connects successfully:

~ ip a
eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
  link/ether <8c:8c:aa....
  altname enp3s0
  inet: 192.168.1.3/24 brd 192.168.1.255 scope global noprefixroute eno1
     valid_lft forever preferred_lft forever

However, when I go and try to ping the opnsense box, it is unreachable :(. From the OPNsense box, if I select option 7) Ping host, and try to ping google.com it works, but when I try to ping my laptop I get 'ping: sendto: Network is down.

I am trying to do it because I need to access OPNsense dashboard from my laptop. Could someone please help me resolve this connection issue?

Just to add, I am running latest 24.7.3_1 version of OPN sense
Title: Re: Unable to connect directly through Ethernet between OPNsense device and a laptop
Post by: meyergru on September 03, 2024, 05:41:38 PM
Quote from: randBlock553 on September 03, 2024, 04:57:14 PM
LAN (igc0) -> v4: 192.18.1.1/24

If this was not a typo only in your post, then maybe you confused igc0 and igc1? Sometimes, their locations are not all that obvious.
Title: Re: Unable to connect directly through Ethernet between OPNsense device and a laptop
Post by: randBlock553 on September 03, 2024, 05:55:53 PM
Thanks ! Yes I was struggling for the last few hours. It was the interface issue. I had my cable connected the other way round, so (laptop) ethernet to WAN and (modem) ethernet to LAN, it must be opposite. So so what did is:

1. Disconnect all ethernet cables from opnsense box
2. Started 'assign interfaces' and then went with automatic method so you just plug in one by one when it tells you
3. Lan is shown as igc1 (3rd port)
4. Wan is shown as igc0 (4th port) (very far right)

now it works ! cheers :)