questions on dedicated VPN link

Nay Myo Win rim.riaz at gmail.com
Wed Jan 27 03:17:25 UTC 2010


Dear brothers.

one office with ADSL is using ADSL modem. interfaces are two ports for phone
line in and out and RJ45 port link from which we can use internet. THat adsl
is DHCP client IP with authentication of username and password.

the other is broadband with static IP with which we can enter on client to
use internet
.

I wanna use is like below

side A clients<--------VPN1(ubuntu box)---------VPN2(UBuntu)----------> side
B clients

the main reason is to share everything between two offices. mainly file
share and local messaging.


thanks









On Wed, Jan 27, 2010 at 8:28 AM, <ubuntu-users-request at lists.ubuntu.com>wrote:

> Send ubuntu-users mailing list submissions to
>        ubuntu-users at lists.ubuntu.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> or, via email, send a message with subject or body 'help' to
>        ubuntu-users-request at lists.ubuntu.com
>
> You can reach the person managing the list at
>        ubuntu-users-owner at lists.ubuntu.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ubuntu-users digest..."
>
> Today's Topics:
>
>   1. Re: questions on dedicated VPN link (Christopher Chan)
>   2. Re: How to monitor server availability and send alert via SMS
>      when      down (Brian McKee)
>   3. Re: Resizing ext4 partition (Karl F. Larsen)
>   4. Re: ls (Amedee Van Gasse (ub))
>   5. Re: ls (Linda)
>   6. Re: ls (Demis Cunha)
>   7. How to install latest version of Firefox? (Ziaus Samad)
>   8. Re: ls (Amedee Van Gasse (ub))
>   9. Re: ls (Amedee Van Gasse (ub))
>
>
> ---------- Forwarded message ----------
> From: Christopher Chan <christopher.chan at bradbury.edu.hk>
> To: ubuntu-users at lists.ubuntu.com
> Date: Wed, 27 Jan 2010 08:59:13 +0800
> Subject: Re: questions on dedicated VPN link
> Nay Myo Win wrote:
>
>> Dear brothers.
>>
>> I have two offices and both have their own internet access.
>> One has ADSL and the other has broadband. Internet Service Provider is the
>> same for both and they allow only HTTP and HTTPS ports. other ports are
>> banned.
>>
>
> Do you have fixed ip addresses for both offices? Or at least a fix ip
> address?
>
>
>  I now would like to create VPN links between two offices placing each
>> UBuntu VPN server with OpenVPN on each office. Is that possible? Please
>> suggest me how to? I am very new to linux and VPN.
>>
>
>
>
> It is possible but you have certain criteria before it can work. If both
> offices are using a router, you need access to those routers to setup
> routing rules. Or you have to use the Ubuntu VPN boxes as the routers. I
> hope you are not new to networking also. If you are new at all this, you
> must be prepared to spend time learning (could take a week or more) or you
> might be better off hiring an expert. Again, if you are using routers and
> they are supplied by the ISP, then you need access to those routers.
>
>
>
>
> ---------- Forwarded message ----------
> From: Brian McKee <brian.mckee at gmail.com>
> To: "Ubuntu user technical support, not for general discussions" <
> ubuntu-users at lists.ubuntu.com>
> Date: Tue, 26 Jan 2010 20:27:13 -0500 (EST)
> Subject: Re: How to monitor server availability and send alert via SMS when
> down
>
>>  Do anyone know how to monitor server availability and send alert via SMS
>>>> when down?
>>>>
>>> You can try to monitor the availability via cacti/nagios/zabbix. But the
>>> onlything I could dowith them was to send e-mails, not SMSs.
>>>
>> many cellphone companies have email to sms gateways. thats how i do it for
>> work.
>>
>
> Now that I'm not typing on a cell phone I would point out this page
> http://en.wikipedia.org/wiki/List_of_carriers_providing_SMS_transit
>
> ---------- Forwarded message ----------
> From: "Karl F. Larsen" <klarsen1 at gmail.com>
> To: "Ubuntu user technical support, not for general discussions" <
> ubuntu-users at lists.ubuntu.com>
> Date: Wed, 27 Jan 2010 01:40:43 -0700
> Subject: Re: Resizing ext4 partition
> Wade Smart wrote:
>
>> --
>>> ubuntu-users mailing list
>>> ubuntu-users at lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>>
>>>
>> Karl, youre suck a fucking ass to everyone.
>> I already told you - THERE WAS NOT THE OPTION TO RESIZE.
>> The extended partition was LOCKED. Can you not get that?
>> Linux swap is IN the extended partition so, by turning it off it
>> worked just fine.
>> Get the freak over yourself.
>>
>> Wade
>>
>>         Wade you are the most unhappy and stupid person on this list. I am
> VERY sorry I tried to help you. Take your cuss words and problems to others.
>
> 73 Karl
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
>
>        Karl F. Larsen, AKA K5DI
>        Linux User
>        #450462   http://counter.li.org.
>        Key ID = 3951B48D
>
>
>
>
>
> ---------- Forwarded message ----------
> From: "Amedee Van Gasse (ub)" <amedee-ubuntu at amedee.be>
> To: ubuntu-users at lists.ubuntu.com
> Date: Wed, 27 Jan 2010 02:43:06 +0100 (CET)
> Subject: Re: ls
> On Wed, January 27, 2010 01:46, nepal wrote:
> > On Tuesday 26 Jan 2010 23:39:10 Amedee Van Gasse (ub) wrote:
> >> On Tue, January 26, 2010 23:12, nepal wrote:
> >> > On Tuesday 26 Jan 2010 21:03:53 Linda wrote:
> >> >> Is there a way to make ls silent if there is no match? I'm not
> >> >>  finding  it in the options, but am hoping I'm just reading over
> >> >> it in the man page. Thanks
> >> >>           Linda
> >> >
> >> > Hi Linda
> >> >
> >> > File a bug report!
> >> >
> >> > The correct response to *ls* for a non-existent target should be
> >> > an empty list.
> >>
> >> Not true. For example:
> >>
> >> amedee at intrepid:~/download$ ls q*
> >> ls: kan geen toegang krijgen tot q*: Bestand of map bestaat niet
> >
> > I have no idea what that is supposed to mean? If you say it is not
> > true can you *explain* please.
>
> This is the first time ever that I had to dig up the source of a program
> to settle an argument. I hope it will be the last time too...
>
> In the coreutils source, in ls.c, you will find the following piece of
> code starting on line 2818:
>
>
>      if (err != 0)
>        {
>          /* Failure to stat a command line argument leads to
>             an exit status of 2.  For other files, stat failure
>             provokes an exit status of 1.  */
>          file_failure (command_line_arg,
>                        _("cannot access %s"), absolute_name);
>          if (command_line_arg)
>            return 0;
>
>          f->name = xstrdup (name);
>          cwd_n_used++;
>
>          return 0;
>        }
>
>
> You see, nepal? If ls can't stat an argument (like a filename with or
> without wildcard), it will throw an error. Statting a file means getting
> its properties from the filesystem.
>
> > Let me put it another way then, the command "ls" is supposed to return
> > a list, that is the meaning of the shortened version of the word list
> > (ls).
>
> I am not an idiot, nepal. I have taken AND passed an LPI exam. (Linux
> Professionals Institute)
>
> > The command is not supposed to make clever comments like I
> > cannot find what you asked for. That is not what was asked for.
>
> That's not what the source code says, and the source code is always right.
> Of course there is a remote possibility that you have hacked your version
> of ls and that you have stripped it from all error reporting, but I find
> that very unlikely.
>
> > Talk to
> > it like it is an idiot. "ls" is a command. I command you (computer) to
> > list whatever you find at this location.
>
> Your comment is not very helpful for Linda (topicstarter).
>
> > Then fancy options like having a message display upon returned errors
> > can be provided to give the user the appropriate level of choice for
> > information returned. But the default should be the basic primary
> > function which is to return a list of a given location.
>
> Again, not helpful for Linda.
>
> >> As an alternative, you could use find with xargs and feed that to
> >>  ls. If find doesn't find anything, nothing will be sent to ls and
> >>  no output will be produced.
> >> As an additional advantage, this solves problems when you have
> >>  directories with thousands or millions of files.
> >>
> > So I maintain that no output should be produced other than the actual
> > listing of a location, unless specifically requested by the user.
> > Actually providing information not asked for is a coder's problem (I
> > used to be but happily gave it up), it has now got to the point where
> > it has its own name, software bloat.
>
> Again, wrong. Basic error reporting is part of normal program operation,
> and Linux even makes it easy by giving us not one but two outputs: out
> (first output) and err (second output). By default, output 1 and 2 are
> both printed to the console, but they can be redirected.
>
> That's why Werner's suggestion will probably be the simplest solution for
> Linda: just redirect the error output (second output) to something else
> than the console, for example to /dev/null aka the bit bucket:
>
> ls [non-existing filename] 2>/dev/null
>
>
> For me this thread is closed. Linda has an answer that will work (Linda,
> please say so if you still have problems). I'm not interested in further
> discussion because that does not help Linda.
>
> --
> Amedee
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Linda <haniganwork at earthlink.net>
> To: "Ubuntu user technical support, not for general discussions" <
> ubuntu-users at lists.ubuntu.com>
> Date: Tue, 26 Jan 2010 19:50:19 -0600
> Subject: Re: ls
> Werner Schram wrote:
>
>> nepal wrote:
>>
>>
>>> On Tuesday 26 Jan 2010 21:03:53 Linda wrote:
>>>
>>>
>>>> Is there a way to make ls silent if there is no match? I'm not
>>>>  finding  it in the options, but am hoping I'm just reading over it
>>>>  in the man page. Thanks
>>>>          Linda
>>>>
>>>>
>>>>
>>> Hi Linda
>>>
>>> File a bug report!
>>>
>>> The correct response to *ls* for a non-existent target should be an empty
>>> list.
>>>
>>> nepal.
>>>
>>>
>> ls does print an error message if you provide a filter which doesn't yield
>> a result (ls: cannot access ...: no such file or directory). I think she is
>> refering to that. But because the error message is sent to the standard
>> error output, you can dispose of it by using:
>>
>> ls [non-existing filename] 2>/dev/null
>>
>> Werner
>>
>>
>>
> The cannot access is the message I was refering to. I was using an ls
> system call inside of a program.
> ls -1 partial-filename*
> it dumps the results into a file and gives the user a list to choose from.
>  I just was hoping for a flag to silence the error message but I can
> redirect standard error instead.
>                           Thanks
>                            Linda
>
>
>
>
> ---------- Forwarded message ----------
> From: Demis Cunha <demisc at terra.com.br>
> To: "Ubuntu user technical support, not for general discussions" <
> ubuntu-users at lists.ubuntu.com>
> Date: Tue, 26 Jan 2010 23:53:14 -0200
> Subject: Re: ls
> Linda,
>
> If you wrinting a script you could use perl for that. Then you could
> load the list of files in a array, sort that array and print for the
> user.
> Just a tip! ;)
>
> Em Ter, 2010-01-26 às 19:50 -0600, Linda escreveu:
> > Werner Schram wrote:
> > > nepal wrote:
> > >
> > >> On Tuesday 26 Jan 2010 21:03:53 Linda wrote:
> > >>
> > >>
> > >>> Is there a way to make ls silent if there is no match? I'm not
> > >>>  finding  it in the options, but am hoping I'm just reading over it
> > >>>  in the man page. Thanks
> > >>>           Linda
> > >>>
> > >>>
> > >>>
> > >> Hi Linda
> > >>
> > >> File a bug report!
> > >>
> > >> The correct response to *ls* for a non-existent target should be an
> > >> empty list.
> > >>
> > >> nepal.
> > >>
> > >>
> > > ls does print an error message if you provide a filter which doesn't
> > > yield a result (ls: cannot access ...: no such file or directory). I
> > > think she is refering to that. But because the error message is sent to
> > > the standard error output, you can dispose of it by using:
> > >
> > > ls [non-existing filename] 2>/dev/null
> > >
> > > Werner
> > >
> > >
> > The cannot access is the message I was refering to. I was using an ls
> > system call inside of a program.
> > ls -1 partial-filename*
> > it dumps the results into a file and gives the user a list to choose
> > from.  I just was hoping for a flag to silence the error message but I
> > can redirect standard error instead.
> >                             Thanks
> >                              Linda
> >
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Ziaus Samad <ziaus_samad at yahoo.com>
> To: ubuntu-users at lists.ubuntu.com
> Date: Tue, 26 Jan 2010 17:55:54 -0800 (PST)
> Subject: How to install latest version of Firefox?
> I cant install laest version of firefox.I use Ubuntu 9.04.How can i install
> it?
>
>
>
>      Get your preferred Email name!
> Now you can @ymail.com and @rocketmail.com.
> http://mail.promotions.yahoo.com/newdomains/aa/
>
>
>
>
> ---------- Forwarded message ----------
> From: "Amedee Van Gasse (ub)" <amedee-ubuntu at amedee.be>
> To: ubuntu-users at lists.ubuntu.com
> Date: Wed, 27 Jan 2010 02:56:20 +0100 (CET)
> Subject: Re: ls
> On Wed, January 27, 2010 02:50, Linda wrote:
> > Werner Schram wrote:
>
> >> ls does print an error message if you provide a filter which doesn't
> >> yield a result (ls: cannot access ...: no such file or directory). I
> >> think she is refering to that. But because the error message is sent to
> >> the standard error output, you can dispose of it by using:
> >>
> >> ls [non-existing filename] 2>/dev/null
> >>
> >> Werner
> >>
> >>
> > The cannot access is the message I was referring to. I was using an ls
> > system call inside of a program.
> > ls -1 partial-filename*
> > it dumps the results into a file and gives the user a list to choose
> > from.  I just was hoping for a flag to silence the error message but I
> > can redirect standard error instead.
>
> Yes.
> Linux has built-in separation between normal output and error output, so
> programs don't have to provide special flags. The user only has to use the
> built-in output redirection. That will work for all programs and the
> programmers don't need to define extra flags.
>
> Isn't Linux great? :-)
>
> --
> Amedee
>
>
>
>
>
> ---------- Forwarded message ----------
> From: "Amedee Van Gasse (ub)" <amedee-ubuntu at amedee.be>
> To: ubuntu-users at lists.ubuntu.com
> Date: Wed, 27 Jan 2010 02:58:01 +0100 (CET)
> Subject: Re: ls
> On Wed, January 27, 2010 02:53, Demis Cunha wrote:
> > Linda,
> >
> > If you write a script you could use perl for that. Then you could
> > load the list of files in a array, sort that array and print for the
> > user.
>
> That is almost identical to my suggestion with find and xargs. Same
> approach, different language (bash vs perl).
>
> --
> Amedee
>
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100127/203fbcc2/attachment.html>


More information about the ubuntu-users mailing list