I'm trying to set up a separate VLAN for my work network using OpenWRT, while keeping it isolated from my home network but still having internet access. Here's my current setup:
- Main Router (HGU from Movistar): Provides internet access with DHCP enabled, using IP range 192.168.1.x.
- OpenWRT Router: Connected to the HGU. It's set to 192.168.2.1 and should handle the work network.
Objective:
- Connect the HGU to port 1 on the OpenWRT router.
- Use port 4 on the OpenWRT router for the work network, isolated from the home network.
- Ensure the work network has internet access.
Current Configuration:
- VLAN Setup:
- VLAN 1: Port 1 (connected to HGU) is untagged.
- VLAN 2: Port 4 is untagged, CPU (eth0) is tagged.
- Interface Settings for VLAN:
- Device: eth0.2
- Protocol: Static address
- IPv4 address: 192.168.2.1/24
- IPv4 gateway: 192.168.1.1 (HGU's IP)
- DNS: Tried using 8.8.8.8
- Firewall Settings:
- Zone for VLAN:
- Input: accept
- Output: accept
- Forward: reject
- Masquerading: Enabled
- Forwarding to wan allowed Issue:
The work network device gets an IP in the 192.168.2.x range but has no internet access. I've checked connections, firewall rules, and interface settings, but can't seem to resolve the issue.
What I've Tried:
Verified physical connections. Ensured firewall masquerading and forwarding settings are correct. Checked gateway and DNS settings. Restarted all devices. Any advice or guidance would be greatly appreciated!