View Single Post
  #2   (View Single Post)  
Old 4th October 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
So 192.168.0.113 on ral0 is in the same WIFI network as 192.168.1.1.
I do not understand what you mean by this. Is the netmask for the subnet on vr0 (192.168.0.113) for a /24 network (255.255.255.0), or is it for a wider subnet?
Quote:
From 192.168.0.113 on vr0 (ethernet) I connect to WIFI router (what ip to give on vr0? 192.168.0.114 or bridge vr0 with ral0?)
I think you are confused....you have certainly confused me. If I understand what you have written, you have two NICs -- vr0 and ral0, and they will be two separate subnets: 192.168.1/24 (perhaps) and 10.0.1/24. Now, you want to know how to configure this?

1. Set your OpenBSD system to be a router (also called a "gateway") by enabling IP forwarding as described in FAQ 6.2.7.

2. Either add a route to your ISP gateway device for the 10.0.1/24 network through 192.168.0.113, or provision your OpenBSD system to use Network Address Translation (NAT) when it routes packets to/from the 10.0.1/24 subnet. This latter requires the use of PF. If this were my topology, I would add a route to the gateway device so it knows how to reach 10.0.1.x addresses. NAT would then be unnecessary.

-----

If this is not what you were looking for, please be more clear when you ask again.
Reply With Quote