Unix Technical Forum

Routeing linux via windows ppp connect

This is a discussion on Routeing linux via windows ppp connect within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Cant get linux to connect to my wireless provider, so trying to route thru my W2K, which can. Both ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 06:28 AM
TonyB
 
Posts: n/a
Default Routeing linux via windows ppp connect

Cant get linux to connect to my wireless provider, so trying to
route thru my W2K, which can.

Both machines are members of 192.168.1.0 subnet on eth0.
Added windows IP as default GWY and the windows DNS servers
on the windows PPP connection to my resolv.conf.

Has any one set this up? I believe you need to setup some
RAS services under windows to achive the tunneling.

Thanks
TonyB

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 06:28 AM
A Guy Called Tyketto
 
Posts: n/a
Default Re: Routeing linux via windows ppp connect

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

TonyB <comxoft@yahoo.com> wrote:
> Cant get linux to connect to my wireless provider, so trying to
> route thru my W2K, which can.
>
> Both machines are members of 192.168.1.0 subnet on eth0.
> Added windows IP as default GWY and the windows DNS servers
> on the windows PPP connection to my resolv.conf.
>
> Has any one set this up? I believe you need to setup some
> RAS services under windows to achive the tunneling.
>
> Thanks
> TonyB
>


Why not try to do this the other way around? have PPP going out
to the linux box from the ISP, and use iptables to masquerade your
network, allowing your windows box to use the same connection? Either
way, IP Masquerading is what you are needing. Have a look at the
IPTables and IP-Masquerading HOWTO. That'll get you what you're looking
for.

BL.
- --
Brad Littlejohn | Email: tyketto@sbcglobal.net
Unix Systems Administrator, | tyketto@ozemail.com.au
Web + NewsMaster, BOFH.. Smeghead! | http://www.sbcglobal.net/~tyketto
PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569 F620 C819 199A E319 F0BF

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCHnAnyBkZmuMZ8L8RAvbpAJ9IZHtNqZhQ7Le+OuIHh1 wiszIBHACg+nLZ
zADMDAOQfD4IMpQfsHkqI+s=
=AEsZ
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 06:29 AM
Ayaz Ahmed Khan
 
Posts: n/a
Default Re: Routeing linux via windows ppp connect

"TonyB" typed:
> Cant get linux to connect to my wireless provider, so trying to
> route thru my W2K, which can.
>
> Both machines are members of 192.168.1.0 subnet on eth0.
> Added windows IP as default GWY and the windows DNS servers
> on the windows PPP connection to my resolv.conf.
>
> Has any one set this up? I believe you need to setup some
> RAS services under windows to achive the tunneling.


If all you want is to share the Internet connection on the GNU/Linux
box, then enable Internet Connection Sharing on the Windows box and,
simply, assign the ethernet IP of the Windows box as a gateway to the
GNU/Linux box. And, yes, do place a valid nameserver entry in
/etc/resolv.conf. And that's it.

--
Ayaz Ahmed Khan, http://fast-ce.org/

"Ten years of rejection slips is nature's way of telling you to stop
writing." -- R. Geis

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 06:29 AM
Shane (aka froggy)
 
Posts: n/a
Default Re: Routeing linux via windows ppp connect

On Thu, 24 Feb 2005 12:06:14 -0800, TonyB wrote:

> Cant get linux to connect to my wireless provider, so trying to
> route thru my W2K, which can.
>
> Both machines are members of 192.168.1.0 subnet on eth0.
> Added windows IP as default GWY and the windows DNS servers
> on the windows PPP connection to my resolv.conf.
>
> Has any one set this up? I believe you need to setup some
> RAS services under windows to achive the tunneling.
>
> Thanks
> TonyB


er.. just to add to what the others have said.. keep an eye on the ip's of
your windows ethernet interfaces.. it (windows) has a very bad habit of
reassigning them new and sometimes completely unrelated ips
very often in the 169.something.something.* range ( forget the two middle
octets) this (reassignment) is because of windows default dhcp settings
also.. windows has been known to reassign the interfaces new ips.. but
still within the same range as you desired

moral of the long post.. keep an eye on the interface ips
--

Hardware, n.: The parts of a computer system that can be kicked

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 06:34 AM
Joaco
 
Posts: n/a
Default Re: Routeing linux via windows ppp connect

On 25 Feb 2005 08:11:00 GMT
Ayaz Ahmed Khan <resilient@myrealbox.com> wrote:

> "TonyB" typed:
> > Cant get linux to connect to my wireless provider, so trying to
> > route thru my W2K, which can.


> enable Internet Connection Sharing on the Windows box and,
> simply, assign the ethernet IP of the Windows box as a gateway to
> the GNU/Linux box. And, yes, do place a valid nameserver entry in
> /etc/resolv.conf. And that's it.
>


Thanks, located the INET sharing property and set it. Then, reset
the W2K gwy ip back to the correct one on my local ethernet (W2K
resets it to 192.168.0.1 ...) already had the nameservers, so linux
now routes fine through the Windows gateway.

Problem has been that I have not been able to 'pppd call tmobile'
on the Linux host. I do CONNECT, and I can see the auth pap
handshake, but then the TMobile uplink stops chatting with me and
configuring my dynamic IP. Checked and crosscheck'd my pppd options
in peers/tmobile with those the linux guys have published on the
Internet as working, and nak.

Saw a multilink patch that needs to be applied to pppd-2.4.2
pppd/auth.c so I am going to recompile and see if that works.

TonyB

--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 06:34 AM
Ayaz Ahmed Khan
 
Posts: n/a
Default Re: Routeing linux via windows ppp connect

"Joaco" typed:
> Ayaz Ahmed Khan wrote:
>> "TonyB" typed:
>>> Cant get linux to connect to my wireless provider, so trying to
>>> route thru my W2K, which can.
>>>

>> enable Internet Connection Sharing on the Windows box and,
>> simply, assign the ethernet IP of the Windows box as a gateway to
>> the GNU/Linux box. And, yes, do place a valid nameserver entry in
>> /etc/resolv.conf. And that's it.
>>

> Thanks, located the INET sharing property and set it. Then, reset
> the W2K gwy ip back to the correct one on my local ethernet (W2K
> resets it to 192.168.0.1 ...) already had the nameservers, so linux
> now routes fine through the Windows gateway.
>
> Problem has been that I have not been able to 'pppd call tmobile'
> on the Linux host. I do CONNECT, and I can see the auth pap
> handshake, but then the TMobile uplink stops chatting with me and
> configuring my dynamic IP. Checked and crosscheck'd my pppd options
> in peers/tmobile with those the linux guys have published on the
> Internet as working, and nak.
>
> Saw a multilink patch that needs to be applied to pppd-2.4.2
> pppd/auth.c so I am going to recompile and see if that works.


If you can successfully set up a dial-up connection on the Windows
2000 box and have enabled Internet connection sharing, everything else
considered, you don't need to set up pppd on the GNU/Linux box to get
to the Internet. Windows 2000's connection sharing feature will take
care of the masquerading for you.

Over here, iptables running on my laptop masquerades my desktop box
and lets it access the Internet through the dial-up connection
established through the laptop. Both the desktop and laptop run
slackware, though. A friend, however, uses Internet connection
sharing on Windows XP to share his dial-up connection among three to
four people connected to his small LAN. And when I took my desktop to
his house sometime last month to finish off our last semester's data
structure project, all I had to do to get to the Internet was to plug
in the ethernet cable and set up the appropriate gateway on my box.

--
Ayaz Ahmed Khan, http://fast-ce.org/

"Ten years of rejection slips is nature's way of telling you to stop
writing." -- R. Geis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 06:36 AM
Joaco
 
Posts: n/a
Default Re: Routeing linux via windows ppp connect

On 1 Mar 2005 02:07:10 GMT
Ayaz Ahmed Khan <resilient@myrealbox.com> wrote:

> "Joaco" typed:
> > Ayaz Ahmed Khan wrote:
> >> "TonyB" typed:
> >>> Cant get linux to connect to my wireless provider, so trying to
> >>> route thru my W2K, which can.
> >>>


> Over here, iptables running on my laptop masquerades my desktop box
> and lets it access the Internet through the dial-up connection
> established through the laptop. Both the desktop and laptop run
> slackware, though. A friend, however, uses Internet connection
> sharing on Windows XP to share his dial-up connection among three
> to four people connected to his small LAN. And when I took my
> desktop to his house sometime last month to finish off our last
> semester's data structure project, all I had to do to get to the
> Internet was to plug in the ethernet cable and set up the
> appropriate gateway on my box.
>
> --
> Ayaz Ahmed Khan,
> http://fast-ce.org/


I think I found the problem with my Linux, that was not allowing
me to connect pppd to TMobile GPRS. I started playing with an
Ericsson gc83 PC Card on ATT Wireless and that complained that the
kernel did not support PPPfiltering and stopped talking to me, just
like TMobile. Checked my kernel's .config and right enough, it was
turned off because I had chosen not to set CONFIG_EXPERIMENTAL=y

Building it right now, so I will see if that makes pppd work with
GPRS sessions on the Slackware box.

Tony

-
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com