Robin wrote:
> 
> hey greg.
> wel this is a big help, but still im to dumb to get it working.

I wouldn't say that.  It is just a familiarity thing.  You knew how to
do this in Coyote Linux and now are struggling with how to do it in
DCD.  Many people who help out on the list started out just like you.

> 
> when i used my coyote linux router i got it working, so im familiar with the
> direct connect in active mode.
> heres a dump of that part of my network.conf file. What am i doing wrong
> here

The most important thing here is you helped yourself out.  You posted
the part of /etc/network.conf that you are struggling with.  That helps
people help you.  Moreover, if you post directly to the list, you may
have already had an answer by now.  In addition, it gives people a
chance to chime in if advice is not correct, etc.
0/0 is a convention to refer to your dynamic or static ip address.  You
need to allow the domain and bootpc through.  bootpc is actually a name
for a port found in /etc/services.  bootpc refers to port 68.  The
neo-modus.com stuff does not have a named port so you just use the
number that the neo-modus.com Direct Connect requires, 412. 
EXTERN_UDP_PORTS should look like this.  Just at to the list inside the
quotes. Like so.

NOTE: that the following set of changes are made in /etc/network.conf.

## UDP Services open to outside world
# Space seperated list: srcip/mask_dstport
# NOTE: bootpc port is used for dhcp client
EXTERN_UDP_PORTS="0/0_domain 0/0_bootpc 0/0_412"

If you need to add additional ports in the future, just add a space and
another port number.

Delete the two commented lines below the EXTERN_UDP_PORTS i.e.
> #EXTERN UDP PORTS="0/0_411"
> #EXTERN UDP PORTS="0/0_412"

Note that there are two ways to perform this task.  I am telling you to
use the first one.  So now we have to clean up the second method.
Delete the two lines that look like this below.
EXTERN_UDP_PORT2="0/0 411 192.168.0.2"
EXTERN_UDP_PORT#="0/0 412 192.168.0.2"

> # -or-
> # Indexed list: "SrcAddr/Mask port [ DestAddr[/DestMask] ]"
> #EXTERN_UDP_PORT0="0/0 domain"
> #EXTERN_UDP_PORT1="5.6.7.8 500 1.1.1.12"
> EXTERN_UDP_PORT2="0/0 411 192.168.0.2"
> EXTERN_UDP_PORT#="0/0 412 192.168.0.2"

The problem here is that you have two definitions.  The first one was
for the incorrect port 411, but it was replaced with the correct 412. 
Please delete this line from the group below in /etc/network.conf.

EXTERN_TCP_PORTS="0/0_411"

> # TCP services open to outside world
> # Space seperated list: srcip/mask_dstport
> EXTERN_TCP_PORTS="0/0_411"
> EXTERN TCP PORTS="0/0_412"

Ok now you have openned up the ports in the firewall with the above
steps as per Direct Connect's FAQ. Now you have to forward them to you
host on your internal network.  Please look for the "# Port Forwarding"
section of the /etc/network.conf file.  You are looking specifically for
this line.

#INTERN_SERVERS="tcp_${EXTERN_IP}_ftp_192.168.1.1_ftp
tcp_${EXTERN_IP}_smtp_192.168.1.1_smtp"

I do not know what your current line looks like.  My instructions will
presume that you have no other services forwarded.  If you do you will
have to add them to the list.  This is a space seperated list just like
the others we have modified.  I believe this is how INTERN_SERVERS
should look like.  Please note the my email client may have broken this
line up at the space.  This should all be one line in your editor!  Also
note that I have changed the default port of 192.168.1.1 to the ip
address you tried below of 192.168.0.2.  That doesn't look correct but
go for it.

INTERN_SERVERS="tcp_${EXTERN_IP}_412_192.168.0.2_412
udp_${EXTERN_IP}_412_192.168.0.2_412"

Finally, backup etc.lrp.

Ok I am just wondering.  You may have to experiment some.  It says in
their FAQ that you have to plug in your external IP address.  If you are
port forwarding to this machine with the Direct Conenct software, I
wonder if you realy have to configure the external IP.  You will have to
try the software with and without the IP configuration.  See part of
their FAQ I copied below in my original response to you.  Port
forwarding presents the connection right to your internal machine and
estentially defeats the NAT in a way.  Perhaps their software has to
make use of the external IP for some reason?


> other question. I ssh into my router from within my internal network, when i
> do ./etc/network.conf
> it sais permission denied.. ???? how come.. i'm root right?

By the way, if you have ssh working, you're not so dumb as you think.  

You are missing at least one space.  ., dot, in front of a file means
that it is supposed to be a hidden file.  Regardless of being root or a
normal user, you were instructing Linux to treat this as an executable
file.  Linux tried to execute the "hidden" file, but the file
permissions were not correct for an executable file. Hence, the
"permission denied" message.  If you ls -l /etc/network.conf you may see
-rw-r--r--  in the leftmost part of the ls output. If you ls -l /bin/sed
you may see -rwxr-xr-x.  The 'x' makes it an executible file.  By the
way, you do not need to change these.

That was not the intent of what I was trying to get you to do.  If you
use dot space filename, it is a Bash/ash shortcut to pull in the
information contained in the file.  Please try this.  Note that I have
put three spaces between the ., dot and the filename for clarity.

.   /etc/network.conf

Now you have all the environment variables available to you from
/etc/network.conf.  Just use the echo command to see what is in one of
the variables.

echo $EXTERN_IP

I hope this helps,
Greg Morgan

Here's the rest of the post.

> 
> ## UDP Services open to outside world
> # Space seperated list: srcip/mask_dstport
> # NOTE: bootpc port is used for dhcp client
> EXTERN_UDP_PORTS="0/0_domain 0/0_bootpc"
> #EXTERN UDP PORTS="0/0_411"
> #EXTERN UDP PORTS="0/0_412"
> # -or-
> # Indexed list: "SrcAddr/Mask port [ DestAddr[/DestMask] ]"
> #EXTERN_UDP_PORT0="0/0 domain"
> #EXTERN_UDP_PORT1="5.6.7.8 500 1.1.1.12"
> EXTERN_UDP_PORT2="0/0 411 192.168.0.2"
> EXTERN_UDP_PORT#="0/0 412 192.168.0.2"
> 
> # TCP services open to outside world
> # Space seperated list: srcip/mask_dstport
> EXTERN_TCP_PORTS="0/0_411"
> EXTERN TCP PORTS="0/0_412"
> 
> # -or-
> # Indexed list: "SrcAddr/Mask port [ DestAddr[/DestMask] ]"
> #EXTERN_TCP_PORT0="5.6.7.8 domain 1.1.1.12"
> #EXTERN_TCP_PORT1="0/0 www"
> #EXTERN_TCP_PORT2="0/0 411 192.168.0.2"
> #EXTERN_TCP_PORT3="0/0 412 192.168.0.2"
> 
> I've uncommented both ways to forward, now the first manner is commented,
> but ive got the uncommented also. Please tell me what to type here exactly.
> it still doesn't work here. Hope u can help me out here further.
> 
> other question. I ssh into my router from within my internal network, when i
> do ./etc/network.conf
> it sais permission denied.. ???? how come.. i'm root right?
> 
> anyways i hope u can help me out further..
> 
> thanks in advance,
> 
> Robin
> 
> ----- Original Message -----
> From: "Greg Morgan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Robin" <[EMAIL PROTECTED]>; "Joey
> Officer" <[EMAIL PROTECTED]>
> Sent: Sunday, June 23, 2002 10:54 AM
> Subject: RE: [leaf-user] problem portforwarding with DCD 1.02
> 
> > "Joey Officer" <[EMAIL PROTECTED]> wrote:
> > and
> > "Robin" <[EMAIL PROTECTED]> wrote:
> >
> > DCD is written in such a way that it does not matter if you have a
> > dynamic address or a static address.  You can get to both via EXTERN_IP.
> > Type these two commands in a file or execute them and the DCD command
> > prompt to get your current ip address.
> >
> > . /etc/network.conf
> > echo $EXTERN_IP
> >
> > That should answer the first part of the FAQ.  Write a letter to them
> > and tell'em that sucks.  But what to you expect from vbscript?
> >
> > http://www.neo-modus.com/?page=Help
> > Q: I have a NATing router and would like to set Direct Connect up for
> > active mode. What ports does it use?
> > A: By default, Direct Connect Uses port 412 for TCP and UDP data. This
> > can be changed in the Direct Connect settings. To make Direct Connect
> > work properly with your NATing router, you must enter your routers WAN
> > IP address in Direct Connect's "Force Direct Connect to report this IP
> > address" text box, and check associated check box.
> >
> >
> > To answer the second part of their FAQ, please look at both
> > EXTERN_UDP_PORTS and EXTERN_TCP_PORTS as found in /etc/network.conf.
> > This is what Joey is pointing you to.  This is where you would setup
> > your port forwarding on 412.
> >
> > Some other people have written scripts to support dynamic ips that
> > support many of these dynamic ip servers.  That will help if you want to
> > get into hubs someday.
> >
> > Q: I want to run a Direct Connect&trade; Hub, but my IP address changes
> > every time I sign online. What can I do?
> > A: You will need to use a service like Dynip.
> >
> > Your fun is just beginning.
> >
> > I hope this helps you get going.
> > Greg Morgan.
> >
> >
> > >
> > > Date: Sat, 22 Jun 2002 12:18:29 -0500
> > >
> > > One way that I think you can do it, it to assign a range of numbers, (I
> > > think) by only specifying some of the ip address. Like so (someone
> correct
> > > me if I'm wrong here)
> > >
> > > EXTERN_PROTO0="xxx 0.0.0.0/32"
> > >
> > > I think that something like that would leave port xxx open to the world.
> > > Another way to do it, regardless of IP is to leave a specific port
> > > completely open under the ipforwarding rule set.  I'm not really up on
> that,
> > > but I could check on it and get back to you...
> > >
> > > I'll see what I can find and let you know something.
> > >
> > > Joey
> > >
> > > -----Original Message-----
> > > From: Robin [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, June 21, 2002 5:20 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [leaf-user] problem portforwarding with DCD 1.02
> > >
> > > Well i don''t think u understand my problem quite..
> > >
> > > The ip number of my DCD BOX is dynamic assigned throiugh ppoe. Now i
> need to
> > > know the variable that is used in the network.conf script for my current
> > > ipnumber (as it changes @least every 72 hrs) With this variable i can
> the
> > > nopen or portforward any port i want.
> > >
> > > i read something bout the variable ${DYNAMIC_IP} but that didnt work, so
> i
> > > have to do something wrong here. please help me out.
> > >
> > > Robin
> > > ----- Original Message -----
> > > From: "Joey Officer" <[EMAIL PROTECTED]>
> > > To: "Robin" <[EMAIL PROTECTED]>
> > > Cc: "LRP Support" <[EMAIL PROTECTED]>
> > > Sent: Friday, June 21, 2002 4:08 PM
> > > Subject: RE: [leaf-user] problem portforwarding with DCD 1.02
> > >
> > > > Well.. the way I do it is that my outside machines, although they are
> dhcp
> > > > based, I leave the machines up, so the ip's never change (or very
> rarely)
> > > > and in those cases I'm just stuck out.  BUT ... in the case where the
> box
> > > > loses its IP address, and regains a new one, you could just have
> someone
> > > on
> > > > the local network of the other box connect to the weblet and review
> the ip
> > > > addresses.  It's a manual fix, but doing it this way would be more
> secure,
> > > > than if you opened the port completely.  But its your call...
> > > >
> > > > Joey
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Robin [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, June 21, 2002 2:35 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: [leaf-user] problem portforwarding with DCD 1.02
> > > >
> > > > ok guyz ty for the quick reaction. But i don't have a static ip
> adress. I
> > > > have a dynamic. What is the stanrd variable called in witch DcD saves
> my
> > > > EXTERNAL ip nu,ber. So i can fill that in instead.
> > > > And i also can't specifie a single ipadress from internet that should
> have
> > > > access.. every ip adress needs to be able to acces my computer.
> > > >
> > > > please help me out,
> > > >
> > > > Thanks,
> > > > robin
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Joey Officer" <[EMAIL PROTECTED]>
> > > > To: "Robin" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > > Sent: Friday, June 21, 2002 3:17 AM
> > > > Subject: RE: [leaf-user] problem portforwarding with DCD 1.02
> > > >
> > > >
> > > > > There is an option within the network.conf file that would look
> similar
> > > > >
> > > > > EXTERN_UDP_PORTS="ip.ad.dr.es/32_xxx"
> > > > >
> > > > > Where ipaddress is the ip address of the other machine, and the xxx
> is
> > > the
> > > > > port number you want to add, then there is also the protocol that
> you
> > > want
> > > > > to add, which is done similar to the following...
> > > > >
> > > > > EXTERN_PROTO0="xxx ip.ad.dr.es/32"
> > > > >
> > > > > Again where PROTO(0) is the a list of numbers (ie 1,2,3,4,5) and xxx
> is
> > > > the
> > > > > tcp/ip port that you want to open..
> > > > >
> > > > > HTH
> > > > >
> > > > > Joey
> > > > > Advocate in Action!
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: [EMAIL PROTECTED]
> > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Robin
> > > > > Sent: Thursday, June 20, 2002 7:57 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [leaf-user] problem portforwarding with DCD 1.02
> > > > >
> > > > > Well as i was reading through all the info that is aruond and that a
> > > lot.
> > > > I
> > > > > discovered some information. But the problem is that i am a
> "advanced"
> > > > newby
> > > > > to Dachstein. As i read this distro uses a different way to
> portforward
> > > > > using the network.conf file. but i couldn't figure it out. Maybe im
> > > dumb.
> > > > > but i don't think so. just not advanced enough. I used to work with
> > > Coyote
> > > > > Linux. but that used to disconnect my box every now and then (bout
> 40
> > > > times
> > > > > a day).
> > > > >
> > > > > this is the case:
> > > > > I have a program called: Direct connect. (filesharing)
> > > > > http://www.neo-modus.com
> > > > > And i need it to work in ACTIVE mode (so it shows ping times etc
> etc)
> > > > > This can be done through forwarding ports 411 and 412 udp aswel as
> tcp.
> > > > >
> > > > > If i use the ipmasqadm autofw (as i read in the masqed apps page) i
> get
> > > a
> > > > > lot of denyed packets in my logs.
> > > > >
> > > > > Can someone please explain to me howto enable the forwarding of
> those 2
> > > > > ports.
> > > > >
> > > > > I'm using a dynamic ip (pppoe) and i really don;t know how to insert
> the
> > > > > variable for my ipnumber (as the actual ip is displayed in the
> > > > network.conf
> > > > > file)
> > > > >
> > > > > So please do this in dummy mode (asfor i MAY understand that :D)
> > > > >
> > > > > the internal ipnumber of the router is: 192.168.0.1
> > > > > the destination host is: 192.168.0.2
> > > > >
> > > > > please help me out asap..
> > > > >
> > > > > thanks for your help,
> > > > >
> > > > > robin
> > > > >
> > > > >
> > > > >
> > > > >
> >
> >
> > -------------------------------------------------------
> > Sponsored by:
> > ThinkGeek at http://www.ThinkGeek.com/
> > ------------------------------------------------------------------------
> > leaf-user mailing list: [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/leaf-user
> > SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to