From: Digital I. Inc. <ok...@di...> - 2004-04-08 13:49:02
|
Hello green. You are the guy talked about slirp on irc? yes, your invention is good. but I guess Windows RRAS can do almost same stuff. --- Okajima. >DNAT is destination NAT an iptables feature > >DNAT changes the destination (as apposed to the more common snat which >changes the source) > >a daemon runs on the linux side and listens for connections on port 9999 > >adressess like 127.0.0.0/8 are cidr addresses the /8 part means the first 8 >bits are significant so in this case it would match everthing from 127.0.0.0 >to 127.255.255.255 > >a dnat entry redirects all outgoing TCP connections except those to >127.0.0.0/8 (and during development 10.0.0.0/8 but that will be removed >later) to 127.0.0.1:9999 > >this daemon picks them up and works out thier original destination by >reading /proc/net/tcp > >this will communicate with a daemon on the host side. during initial testing >i will use tcp (yes i know this defeats the main object but it allows me to >test before more suitable mechanisms are in place) but i am hopeing for some >kind of generic char device that links to the stdin and stdout of a windows >side app. > >the windows side app will make the conenctions like any other windows app. > >i will probabblly make it so that connecting to 192.0.2.0/24 makes a >connection to 127.0.0.0/24 on the host > >i chose the 192.0.2.0 range because it is not allowed on the public internet >and with it's documented intended use i find it unlikly that it will be used >on a private network > >from rfc 3330 >192.0.2.0/24 - This block is assigned as "TEST-NET" for use in > documentation and example code. It is often used in conjunction with > domain names example.com or example.net in vendor and protocol > documentation. Addresses within this block should not appear on the > public Internet. > >-----Original Message----- >From: Digital Infra, Inc. [mailto:ok...@di...] >Sent: 08 April 2004 03:23 >To: peter green >Cc: col...@li... >Subject: coLinux NAT > > > >what is dnat? > >... anyway, if you mention about how to share one IP, >I think using RRAS > ([Control Panel]->[Service]->[Routing and Remote Access] on Win2k/XP) >is one candidate. >I have not tested it, but I heard that it is generic NAT driver for Win. > > --- Okajima. > > >>i'm working on an alternative approach which shouldn't require any special >>drivers on the host when finished >> >>the basic idea is to use a dnat to direct all outgoing connections to a >>local daemon >> >>this will pick them up as connections (note connections not packets) and >>will then communicate in some manner with a daemon on the host (i've yet to >>work out exactly how to do this) this daemon will then use normal winsock >>calls to connect to the destination. >> >>-----Original Message----- >>From: col...@li... >>[mailto:col...@li...]On Behalf Of >>ch...@to... >>Sent: 08 April 2004 00:44 >>To: Digital Infra, Inc. >>Cc: ch...@to...; Bart Kerver; Cooperative Linux Development >>Subject: Re: [coLinux-devel] XML configuration >> >> >>I have not tried it my self but I may give it a try to see what works. >>I was just basing my responce on my experience with trying to make >>programs that used other programs compiled with cyg. >> >>IMHO vnc would probably be better for coknoppix because of the single file >>viewer. >> >>Another thing I was thinking about is that the colinux-daemon may need a >>post boot command that you can add to the config file that will run after >>it is up and ready to accept the connection. >> >>Or have you already worked out a way to know when to run X so that it is >>not coming up before coLinux is ready? >> >>Is there a way to use the tap driver as a standalone program or will it >>have to be installed for the live cd to work. It would be so cool if a gui >>would just pop up and be ready to go the first time the cd is inserted >>with no interaction. >> >>chris >> >>> >>> >>> Hello Chris and Kerver. >>> >>> thanks for advise. >>> >>> I want to confirm one thing - >>> in your env, you can run startx.zip without /cygwin/usr/bin/X11R6 ? >>> for example, you do >>> [Cygwin]$ mv /usr/bin/X11R6 /usr/bin/X11R6.notfound >>> then you can run XWin.exe from startx.zip? >>> >>> at least, it fails in my env. >>> Windows does not complain. Just Xwin.exe fails without any message. >>> and I found that font files in /usr/bin/X11R6/lib/X11/fonts are >necessary. >>> and it also requires /tmp. >>> >>> To make Cygwin/X installer, I have to fix what is really necessary. >>> >>> I hope you try it and send me the result. >>> >>> thanks in advance, Okajima. >>> >>> >>>> >>>>> >>>>> and Kerver, I found that your startx.zip needs full Cygwin/X install. >>>>> if you dont understand, change your c:/cygwin/usr/bin/X11R6 to other >>>>> name. >>>>> your zip does not run. you have any idea? >>>>> >>>>> --- Okajima. >>>> >>>> >>>>A little tip I found is that when adding cygwin directories to the >>>> windows >>>>path add them under user variables not under system variables. That way >>>>you can have an account that does not have access to them for testing >>>>unless the program finds the file without using PATH >>>> >>>>Okajima, does windows not complain that it cannot find a certian file? >>>> >>>>chris >>>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: IBM Linux Tutorials >>> Free Linux tutorial presented by Daniel Robbins, President and CEO of >>> GenToo technologies. Learn everything from fundamentals to system >>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>> _______________________________________________ >>> coLinux-devel mailing list >>> coL...@li... >>> https://lists.sourceforge.net/lists/listinfo/colinux-devel >>> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>_______________________________________________ >>coLinux-devel mailing list >>coL...@li... >>https://lists.sourceforge.net/lists/listinfo/colinux-devel >>--- >>Incoming mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.648 / Virus Database: 415 - Release Date: 31/03/2004 >> >>--- >>Outgoing mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.648 / Virus Database: 415 - Release Date: 31/03/2004 >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>_______________________________________________ >>coLinux-devel mailing list >>coL...@li... >>https://lists.sourceforge.net/lists/listinfo/colinux-devel >> >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.648 / Virus Database: 415 - Release Date: 31/03/2004 > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.648 / Virus Database: 415 - Release Date: 31/03/2004 > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >coLinux-devel mailing list >coL...@li... >https://lists.sourceforge.net/lists/listinfo/colinux-devel > |