From: Pim Pronk <pim@pimpronk.nl>
To: lartc@vger.kernel.org
Subject: [LARTC] how to route traffic from LAN over ppp0 to gateway to ppp1
Date: Sat, 11 Jan 2003 16:13:31 +0000 [thread overview]
Message-ID: <marc-lartc-104230156503148@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 2458 bytes --]
Hi,
I have a routing problem that I want to share with you people ;)
My situation is as follows:
Workstation
|
Server
| |
ppp0 ppp1
As you see, i have 2 internet connections. One of them (ppp1) is dedicated to some gameservers I am running. To make sure all incoming trafic on this interface also leaves via this interface, I added the following rules:
from all to 145.y.y.y lookup ppp1
from 145.y.y.y lookup ppp1
And table ppp1 contains the following entries:
145.y.y.y dev ppp1 scope link
default via 145.y.y.0 dev ppp1
It is clear that when I connect from my Workstation to a gameserver running on ppp1, I will never receive any packets, that's why I have also added the following rules:
from 145.y.y.y to 192.168.0.0/16 lookup main
from 192.168.0.0/16 to 145.y.y.y lookup main
So this is all working well, but here comes the problem. The gameservers are communicating with some master servers to authenticate my cdkey. The client (my workstation) sends a message to the master which checks my cdkey and stores the result of that with my ip. When I connect to a gameserver, the server connects also to that master and asks if the player has a valid cdkey by sending the players IP address. And there is the problem. Because I am connecting from a LAN behind my server, the gameservers which runs on my server see me with a 192.168.x.x address, but the master server is seeing my public IP address (ppp0). As you understand, because of this it is impossible for me to logon on my gameservers :(
What I have tried to do, is to route traffic coming from my Workstation with destination ppp1 over ppp0 to the gateway. Then the gateway would send the traffic back to ppp1 and both the master and my gameservers see my public IP address. This is what I have done:
The rule
"from 192.168.0.0/16 to 145.y.y.y lookup main"
changed in
"from 192.168.0.0/16 to 145.y.y.y lookup ppp0"
and I deleted the rule
"from 145.y.y.y to 192.168.0.0/16 lookup main"
table ppp0 looks like this:
145.x.x.x dev ppp0 scope link
145.y.y.y via 145.x.x.0 dev ppp0
Unfortunately this aint working, but what am I doing wrong? Is it just impossible for a server to route traffic, with destination a interface on the server itself, to a gateway? If so, do you maybe have another idea on how I could solve this problem?
Thanks in advance,
Pim
[-- Attachment #2: Type: text/html, Size: 4839 bytes --]
reply other threads:[~2003-01-11 16:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-104230156503148@msgid-missing \
--to=pim@pimpronk.nl \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox