Hi,
This issue has for sure been discussed a few times. Didn't find anything
in the archives matching my exact question though.
This is the case:
A friend of mine, living in a dorm room with 10Mit Half-duplex internet
access. Since the connection is halv duplex, it isn't a good idea to play
<whatever online shoot-em-up game> while downloading a huge file on FTP.
His neighbor, in the room next to his, also a frequent gamer, thought that
there must be a solution. So the asked me if I knew of any.
What I thought of, is if it would be possible to utilise both of their
Internet connections. Using one for online gaming, and the other for
<the rest>. Example:
OpenBSD FW with 3 interfaces:
ext0 -> Internet Connection 1
ext1 -> Internet Connection 2
int0 -> Internal network with NAT
If we then assume that <whatever online game> connects to port 5000 on the
game server, the pf nat rules could look like this:
nat on ext0 from 192.168.0.0/24 to any port 5000 -> ($ext0_ip)
nat on ext1 from 192.168.0.0/24 to any -> ($ext1_ip)
The hour is a bit late, but to me this seems fine. If the destination port
is 5000, put out the packet using ext0 (using ext0 ip as sender), else use
ext1 (using ext1 ip as sender). Both of these connections use the same
router (as it is a dorm LAN), so only one default gateway would need to be
set in the OpenBSD configuration.
What do you think of this? Could it work or am I going to spend my time
with something undoable trying to set this up?