Date: Tue, 18 Apr 2000 16:24:43 +0930 From: "James Collins" <jimbo@ringtail.com.au> To: <freebsd-questions@FreeBSD.org> Subject: gateway Message-ID: <001501bfa902$fbca2160$04de0dcb@bob.ringtail.com.au>
next in thread | raw e-mail | index | archive | help
HI, I'm trying to setup a Dial-in modem pool on my freeBSD box (203.13.222.1). From a windoze machine (203.13.222.209) I can dial up and everything is fine (route has been added) and I can surf the web if I use the proxy server which is running on the dial up machine. The problem is however, how do I set the dial-ins gateway to another machine(203.13.222.3)? From the windoze machine I tell it to get everything automatically, which it does, except it sets it's default gateway to be its IP address which the freeBSD box assigned to it. I can ping the freeBSD box and any other box that has its default gateway set to 203.13.222.1 (these boxes configuation is wrong which I will change), however I need to tell the windoze machine when it dials-up the gateway is 203.13.222.3. In windows I tried manually setting the gateway, however when I had a look at winipcfg it told me its gateway was still its self and it took a long time connecting (i.e. its own IP address). The freeBSD box's gateway has been set to 203.13.222.3 Another thing I should note is we are using a subnet mask of 255.255.255.192 for address 203.13.222.0 to 203.13.222.64 Basically all I need to know is... How do I set the freeBSD box to tell the windoze box the gateway is elsewhere? And is there something I can add to the options.tty_ files to do it? Do I need to add something to ip-up to add a special route? here is one of my options.tty_ files, I have tried adding proxyarp and defaultroute to it with no success. ----options.tty1------ 203.13.222.1:203.13.222.209 crtscts modem ------FreeBSD box's rc.conf----- # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. # -- sysinstall generated deltas -- # ifconfig_fxp0="inet 203.13.222.1 netmask 255.255.255.192" defaultrouter="203.13.222.3" network_interfaces="fxp0 lo0" hostname="rodent.crp.com.au" named_enable="YES" gateway_enable="YES" xntpd_enable="YES" ----netstat -nr---------- Internet: Destination Gateway Flags Refs Use Netif Expire default 203.13.222.3 UGSc 18 82667 fxp0 127.0.0.1 127.0.0.1 UH 10 11487 lo0 203.13.222/26 link#1 UC 0 0 fxp0 203.13.222.1 0:8:c7:d9:bd:a1 UHLW 1 24700 lo0 203.13.222.2 0:60:97:a6:55:14 UHLW 0 1760 fxp0 1131 203.13.222.3 0:c0:4f:d3:5d:e6 UHLW 17 113 fxp0 424 -snip- 203.13.222.72/29 203.13.222.73 UGSc 1 41 ppp4 203.13.222.73 203.13.222.1 UH 2 310 ppp4 203.13.222.96/28 203.13.222.97 UGSc 0 20 ppp2 203.13.222.209 203.13.222.1 UH 0 12 ppp3 203.13.222.214 203.13.222.1 UH 0 261 ppp0 203.13.222.240/28 203.13.222.241 UGSc 1 91 ppp1 203.13.222.241 203.13.222.1 UH 2 1339 ppp1 Thankyou for your time. James Collins. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001501bfa902$fbca2160$04de0dcb>