So 192.168.0.113 on ral0 is in the same WIFI network as 192.168.1.1.
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?)
10.0.1.1 WIFI router is AP for my clients, i.e. 10.0.1.100. Should I configure somehow that WIFI router like gate adress?

Do you know how to configure through PF that 10.0.1.100 will send and receive packets thorough 192.168.0.113 and finally 192.168.1.1?

If you have some similar setup for two subnets I would appreciate it (just a sketch so I understand how it works).

Thank you for your help.

Piotr.

Last edited by Pjoter; 4th October 2011 at 10:03 AM.
Reason: Code tags

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.

You have said that 192.168.1 and 192.168.0 are the same network twice, now. While that is possible, it is likely you are mistaken, since you have a gateway between them. I asked you about the network you control, 192.168.0, and if it had a /24 netmask. You did not reply to that question. As you asked about giving your wireless NIC an address on your wired NIC's subnet, I think you may be confused about IP subnetting generally.