Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Post a reply

DSL Connection as Default Route

Sep 30 05 8:55 am

hello,

i have 2 internet connections. One over a DSL Modem in my LAN and the other over a Hardware Router (using NAT) in my LAN. The Wingate Server, Wingate Clients, the DSL Modem and the Router are connected with a switch.

If i browse for example with the internet explorer, the default internet connection is the Hardware Router, but i want to use the DSL Modem by default, How can i edit the Routetable to reach this?

thank you, TFTS

Sep 30 05 12:07 pm

If the activity is proxyable (Such as an intercepted / straight web session in WinGate) you can use the gateway selection page to determine what gateway you want it to go out of.

Sep 30 05 12:20 pm

hello,
what i want is to edit the routetable, so my DSL Modem will be prefered while using the internet on the wingate server computer without using any feature of the wingate engine. (for example, just normal using of the internet explorer)

or a second possibility would be, if i could add a gateway to wingate (for example a hardwarerouter in my LAN), so that i can choose the gateway in the gateway settings of proxies and mappings, but the gateway wouldn't be set in my windows gateway settings of my LAN interface.

is it understandably?

thank you, TFTS

Sep 30 05 12:22 pm

Then it needs to be the default gateway with the lowest metric.

Are you talking about the WinGate Server itself only or clients surfing through the WinGate Server as well?

Sep 30 05 12:24 pm

i only talk about the wingate server itself. what does the metric value mean. Can i change it? Or would my network don't work anymore, if i change the metric value?

Sep 30 05 12:28 pm

Qbik Routing Paper wrote:The metric is a number associated with a route which conveys the concept of priority of the route. The smaller the metric, the higher the priority. Originally the concept of metric was a type of cost associated with using the route, so routes with lower cost were favoured over those with higher cost. If you have 2 routes that are the same (same destination address and mask), then the one with the lower metric will be used.


You can find the routing paper here. It is under our Resources section.

Sep 30 05 12:41 pm

both default routes have a metric with the value "1". Is it possible to start the Gateway Default Route of my Hardware Router (that gateway which is set in the gateway settings of my LAN interface) with a metric value of "2" by default? so my problem would be solved, right? if my Dial up connection to the DSL Modem exists, it would be use this default route because it would be still has a metric "1"?


thank you, TFTS

Sep 30 05 11:32 pm

I tried to change the Default Route by editing the Routetable

route DELETE 0.0.0.0 MASK 0.0.0.0 192.168.0.x METRIC 1
route -p ADD 0.0.0.0 MASK 0.0.0.0 192.168.0.x METRIC 2

it works, if my DSL Connection is offline. But if i go online with my DSL Modem it always changes all default routes to Metric = 1

why does this happen?

thank you, TFTS

Sep 30 05 11:50 pm

Adjust the metric in the OS properties of the adapter. Switch to TCP/IP (Advanced). On XP you have an option there to untick "Automatic Metric" and to set it to the value you want.

Oct 01 05 12:05 am

Yes i tried this too, but the metric falls aways back to 1 if i connect to my dsl modem. It seems to be wingate which set the metrics to 1 ... because if i disable the wingate engine my Hardwarerouter gets a metric of 20 by default and is set to 21 if i connect to the dsl modem

is this a bug in wingate?

greez, TFTS

Oct 01 05 12:08 am

No, as far as I know WinGate does not modify the route table. I'm at home though so can't check source code until Monday.

Oct 01 05 12:14 am

but it really seems so ... i have testet it now twice ... i will test it once again

greez, TFTS

Oct 01 05 12:19 am

Pascal wrote:as far as I know ... I'm at home though so can't check source code until Monday...


I'll check for you Monday. Can't give you a definitive answer until then, sorry.

Oct 01 05 12:27 am

ok thank you

Oct 01 05 12:34 am

Out of curiosity, why the complexity in the network setup?

Oct 01 05 2:45 am

because i don't want to run all application on the Wingate Server over a Socks proxy, but by default they should use the DSL Modem Connection. Other Applications i want to run over the hardware router (gateway) in my network. For those applications i want to use socks proxy.

greez, TFTS

Oct 03 05 3:48 pm

Ok, correct there. If there are multiple default routes found, WinGate will re-create those routes. Just talking to the rest of the dev team to see if there is another work around for this.

Oct 03 05 3:56 pm

If WinGate finds multiple default routes, it sets the metrics back to 1.

this was to support multiple dialups a while ago, because when you create a dialup connection, DUN/RAS was setting the metric of other default routes to a higher value, stopping those other modems from being used.

I don't think this is necessary any more though with our gateway selection.

But I don't think there is a workaround - we would need to disable this code.

Adrien

Oct 04 05 12:38 am

thank you for your replies,

i have found a solution. i have disabled the gateway address in my windows settings (of my LAN card) and have added a entry in my route table.
route -p add 0.0.0.0 MASK 255.255.255.255 192.168.0.11 METRIC 2

with this entry, wingate does detect the ip 192.168.0.11 as gateway, and i can use it in my socks settings and it seems to work (don't ask me why...). If i use the internet without wingate (on the wingate server), it takes the connection of my dsl modem.

The socks server does work, for example with the internet explorer. But i get problems to run a http file server or a ftp server over my socks proxy server. Can you tell me how i can it get working?

thank you, TFTS
Last edited by TFTomSun on Oct 04 05 4:49 am, edited 1 time in total.

Oct 04 05 2:55 am

so what i want to ask ... is there a possibilty to forward ports to a application which is connected over the socks proxy server, so that the application can run as a server (for example: run a ftp-server behind a socks server)

greez, TFTS

Oct 04 05 9:09 am

hm, the reason because my ftp server is not reachable over my hardware router seems to be my routetable entry, so if i only use outgoing connections it works fine (for example the internet explorer) but if i want to create a ftp server behind my hardware router on the wingate server it doesnt work

but i dont understand why, cause, i would think that outgoing connections should not be redirected to my hardware router because of the mask of 255.255.255.255 ... but this works (ie)

other idea: can i protect the file or registry entry where wingate take the gateway metric changes, so wingate can't change the metric values ... or can i disable the plugin in wingate which is changing the metric values?

thank you, TFTS
Post a reply