Re: Is it possible to do with pf?

2013-05-30 Thread Tomas Bodzar
On Tue, May 28, 2013 at 9:11 PM, Mark Felder f...@feld.me wrote:

 Yes, it's in the man page for pf.conf. Search for user.


and maybe you will want it from other point of view so then check man authpf



Text processor with a versioning feature like Google Docs

2013-05-30 Thread Xianwen Chen
Hi folks,

I like the versioning feature in Google Docs a lot. There I can review
past revisions of a document, which were generated automatically. In
LibreOffice Writer, such a feature can be improvised if I change the
user name in options each time I want to start a revision. That's not
convenient. Do you know if there is a text processor that has a
similar versioning feature like Google Docs?

Thanks!

Xianwen
--
Xianwen Chen x.che...@gmail.com
+47 984 21 622 | +1 307 223 2032
Student of economics
Norwegian University of Life Sciences



Re: Text processor with a versioning feature like Google Docs

2013-05-30 Thread Xianwen Chen
Great solution! Thank you Jan!

Xianwen
--
Xianwen Chen x.che...@gmail.com
+47 984 21 622 | +1 307 223 2032
Student of economics
Norwegian University of Life Sciences


On Thu, May 30, 2013 at 5:02 PM, Jan Stary h...@stare.cz wrote:

 vi(1) + cvs(1)



OSPF ABR/ASBR issue

2013-05-30 Thread Stijn

Hi misc,

I've been playing with OSPF on OpenBSD and Cisco and there's something I 
can't get my head around. I hope someone is able to point my in the 
right direction.


Let me first explain the setup; output of the devices follows at the end.

I have a setup of two Cisco routers (IOS 12.4.25g) and one OpenBSD 
router (5.3 i386). All routers have an interface connected to area 0. 
The interfaces are defined as follows:

router1: fa0/0, 10.0.0.1/24
router2: fa0/0, 10.0.0.2/24
soekris: sis1, 10.0.0.3/24

Each router also have a loopback interface:
router1: lo1, 1.1.1.1
router2: lo1, 2.2.2.2
soekris: lo1, 3.3.3.3

On the other side of the routers I have defined a dedicated areafor 
each router:

router1: area 0.0.0.1
router2: area 0.0.0.2
soekris: area 0.0.0.3

In the dedicated area I've added the following interface:
router1: vlan101, 10.101.0.1/24
router2: vlan102, 10.102.0.1/24
soekris: sis2, 10.103.0.1/24

When I start ospfd, all routers are able to see each other. On soekris 
I'm also able to see the networks from the areas behind router1 and router2:


soekris:~# ospfctl sh nei
ID  Pri StateDeadTime Address Iface Uptime
1.1.1.1 1   FULL/BCKUP   00:00:00 10.0.0.1 sis0  00:21:48
2.2.2.2 1   FULL/DR  00:00:00 10.0.0.2 sis0  00:21:43

soekris:~# ospfctl sh fib ospf
flags: * = valid, O = OSPF, C = Connected, S = Static
Flags  Prio Destination  Nexthop
*O   32 1.1.1.1/32   10.0.0.1
*O   32 2.2.2.2/32   10.0.0.2
*O   32 10.0.0.0/24  10.0.0.3
*O   32 10.101.0.0/2410.0.0.1
*O   32 10.102.0.0/2410.0.0.2


However on the Cisco routers I'm not able to see the dedicated network 
behind soekris:


router1#sh ip route ospf
 2.0.0.0/32 is subnetted, 1 subnets
O   2.2.2.2 [110/2] via 10.0.0.2, 00:21:48, FastEthernet0/0
 3.0.0.0/32 is subnetted, 1 subnets
O   3.3.3.3 [110/11] via 10.0.0.3, 00:21:48, FastEthernet0/0
 10.0.0.0/24 is subnetted, 3 subnets
O IA10.102.0.0 [110/2] via 10.0.0.2, 00:21:48, FastEthernet0/0


When I add a secondary OpenBSD router (eeepc) behind soekris in area 
0.0.0.3 (as a stub router) the networks in area 0.0.0.3 are shown on the 
Cisco routers (eeepc has 4.4.4.4 as loopback interface):


router1#sh ip route ospf
 2.0.0.0/32 is subnetted, 1 subnets
O   2.2.2.2 [110/2] via 10.0.0.2, 00:00:16, FastEthernet0/0
 3.0.0.0/32 is subnetted, 1 subnets
O   3.3.3.3 [110/11] via 10.0.0.3, 00:00:16, FastEthernet0/0
 4.0.0.0/32 is subnetted, 1 subnets
O IA4.4.4.4 [110/21] via 10.0.0.3, 00:00:06, FastEthernet0/0
 10.0.0.0/24 is subnetted, 4 subnets
O IA10.102.0.0 [110/2] via 10.0.0.2, 00:00:16, FastEthernet0/0
O IA10.103.0.0 [110/11] via 10.0.0.3, 00:00:16, FastEthernet0/0


I've seen on the Cisco routers the following that might point to the 
cause of the issue(?) When eeepc is not active the Cisco router shows 
soekris as ASBR:


router1#sh ip ospf border-routers

OSPF Process 1 internal Routing Table

Codes: i - Intra-area route, I - Inter-area route

i 2.2.2.2 [1] via 10.0.0.2, FastEthernet0/0, ABR, Area 0, SPF 37
i 3.3.3.3 [1] via 10.0.0.3, FastEthernet0/0, ASBR, Area 0, SPF 37


When eeepc is active the Cisco shows soekris as ASR/ASBR and routes 
from area 0.0.0.3 are available on the Cisco routers:


router1#sh ip ospf border-routers

OSPF Process 1 internal Routing Table

Codes: i - Intra-area route, I - Inter-area route

i 2.2.2.2 [1] via 10.0.0.2, FastEthernet0/0, ABR, Area 0, SPF 36
i 3.3.3.3 [1] via 10.0.0.3, FastEthernet0/0, ABR/ASBR, Area 0, SPF 36


So, now my question is: how can I get soekris to be seen as an ABR 
without using eeepc? Is it because the Cisco routers see soekris as an 
ASBR that they don't add 10.103.0.0/24 and 4.4.4.4/32 to their routing 
table? I also played with the rfc1583 compatibility mode but without luck.


Anybody have a clue how to solve this? Please let me know if you need 
any other output.


Thanks in advance,
Stijn

Here's the output of the ospf config and interfaces.

router1:

router ospf 1
 router-id 1.1.1.1
 no compatible rfc1583
 log-adjacency-changes
 passive-interface Vlan101
 network 1.1.1.1 0.0.0.0 area 0
 network 10.0.0.0 0.0.0.255 area 0
 network 10.101.0.0 0.0.0.255 area 1

interface FastEthernet0/0
 ip address 10.0.0.1 255.255.255.0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 7 130A04020D5C
 ip ospf dead-interval minimal hello-multiplier 5
 duplex auto
 speed auto
end


router2:

router ospf 1
 router-id 2.2.2.2
 no compatible rfc1583
 log-adjacency-changes
 passive-interface Vlan102
 network 2.2.2.2 0.0.0.0 area 0
 network 10.0.0.0 0.0.0.255 area 0
 network 10.1.0.0 0.0.0.255 area 0
 network 10.102.0.0 0.0.0.255 area 2

interface FastEthernet0/0
 ip address 10.0.0.2 255.255.255.0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 7 0504151F271C
 ip ospf 

Re: From the military propaganda department

2013-05-30 Thread Richard Thornton
Time to drink a beer and chill out, dude!

Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE
network.

From: Justin LindbergSent: Saturday, May 25, 2013 2:01 PMTo:
misc@openbsd.orgReply To: Justin LindbergSubject: From the military
propaganda department

Excuse the Yahoo address.  That's the best I can do here in the United
States
of Amerikkka.  How is life in OpenBSD-land?  The gummint dont trust me
when
I use OpenBSD because they don't have a clue what I'm doing when I'm at
my
computer.  Even after they've read my code, and obtained all my passwords
via
rubber-hose cryptanalysis, and they're sitting at my keyboard staring at
the hash
prompt, they still don't have a clue what I am doing, and they think the
problem
can be solved by the more liberal use of rubber hoses.

Oh, I was writing a letter to my attorney.  But some people consider that
to be
illegal here in Amerikkka.

They don't understand that when I am ready to release my software, I
release it,
and when it's released, it's released.  That is my right under our First
Amendment
guarantee of freedom of speech and of the press.  I think it works pretty
similarly
over there in Canada.  When you've tested your code and you are ready,
you
commit it, and when it's committed, it's committed, and the rest of the
team is
free to tear it to shreds.

The best defense to rubber-hose cryptanalysis is small pieces of lead,
saboted
and silenced and projected at high speed at anyone and everyone armed
with a
rubber hose.  The Penguins over in Linux-land understand this very well. 
Do the
Pufferfish?  Because that's my right, too, under our Second Amendment
guarantee of the right to keep and bear arms.

So when I'm ready, I fire a shot, and when it's fired, it's fired, and
there is no
calling it back.  And that's why I make dead certain that I am ready
before I fire.

Even if the U.S. Department of Defense considers computer cryptography to
be a
munition of war, then the right to use it is still protected, only under
the Second
Amendment rather than the First.  Some communications are private,
confidential,
classified, or privileged and not obtainable with a warrant, and that is
why we use
cryptography here in the United States of America.



5.2 and 5.3 halt

2013-05-30 Thread Mario Ulrich
I have a SunBlade 100 (USparc iie)

Noticed that when I went to halt -p after freshly
loading 5.3, when I cold boot I get '/ was not
unmounted properly' and it will have to check a
couple of the partitions and mark them clean.
This not happening with 5.2.  I went back to
using 5.2 to retain my sanity.   I also tried
shutdown -hp and -ph just to make sure.

I am a total newb.  If someone can help, great.
Either way, thanks for your time and effort.

Mario



printing

2013-05-30 Thread Mario Ulrich
I have a SunBlade 100 (USparc iie). I have been running 5.2 because of
synching disks problem in 5.3 which I have posted in a separate mail.

Using Cups w/ hplip to print to hp photosmart 5520 series.  When
printing, prints 1 sheet as four separate sheets each 1/4 of the data.
Tried to print a test page and got 4 separate pages each with 1/4 of
test page. This occurs in 5.2.

In 5.3, I get a message filter failed.  One sheet only is printed, but it
is
all black.

The error log was not helpful.  In the case of 5.2, there is an entry that
starts with 'X' and states that there is a bad file descriptor.  In 5.3, it
just states the filter failed.  I am having a difficult time replicating the
error because everytime I try, cups seems to behave differently.
Sometimes it will process the job but nothing comes out of printer.

Will try to get more log data.  I am a total newb and appreciate your
patience.  Thanks :-) .


Mario



Re: Text processor with a versioning feature like Google Docs

2013-05-30 Thread Xianwen Chen
Great to know. Thank you Oldak!

Xianwen
--
Xianwen Chen x.che...@gmail.com
+47 984 21 622 | +1 307 223 2032
Student of economics
Norwegian University of Life Sciences


On Thu, May 30, 2013 at 8:11 PM, Oldak Quill oldakqu...@gmail.com wrote:

 emacs integrates well with version control too:

 https://www.gnu.org/software/emacs/manual/html_node/emacs/Version-Control-Systems.html



Re: printing

2013-05-30 Thread Antoine Jacoutot
On Thu, May 30, 2013 at 09:01:35PM -0500, Mario Ulrich wrote:
 I have a SunBlade 100 (USparc iie). I have been running 5.2 because of
 synching disks problem in 5.3 which I have posted in a separate mail.
 
 Using Cups w/ hplip to print to hp photosmart 5520 series.  When
 printing, prints 1 sheet as four separate sheets each 1/4 of the data.
 Tried to print a test page and got 4 separate pages each with 1/4 of
 test page. This occurs in 5.2.
 
 In 5.3, I get a message filter failed.  One sheet only is printed, but it
 is
 all black.
 
 The error log was not helpful.  In the case of 5.2, there is an entry that
 starts with 'X' and states that there is a bad file descriptor.  In 5.3, it
 just states the filter failed.  I am having a difficult time replicating the
 error because everytime I try, cups seems to behave differently.
 Sometimes it will process the job but nothing comes out of printer.
 
 Will try to get more log data.  I am a total newb and appreciate your
 patience.  Thanks :-) .

most, if not all printer related issues that I am aware of should be fixed in 
current. 5.2 and 5.3 both had there share of specific issues..

-- 
Antoine



Re: softdep flag lost when updating mountpoint

2013-05-30 Thread Patrik Lundin
On Tue, May 28, 2013 at 04:51:34PM -0400, Ted Unangst wrote:
 
 Indeed, I think maybe this is ok.
 
 Index: ffs_vfsops.c
 ===
 RCS file: /cvs/src/sys/ufs/ffs/ffs_vfsops.c,v
 retrieving revision 1.136
 diff -u -p -r1.136 ffs_vfsops.c
 --- ffs_vfsops.c  15 Apr 2013 15:32:19 -  1.136
 +++ ffs_vfsops.c  28 May 2013 20:50:42 -
 @@ -221,7 +221,6 @@ ffs_mount(struct mount *mp, const char *
   flags |= FORCECLOSE;
   if (fs-fs_flags  FS_DOSOFTDEP) {
   error = softdep_flushfiles(mp, flags, p);
 - mp-mnt_flag = ~MNT_SOFTDEP;
   } else
   error = ffs_flushfiles(mp, flags, p);
   ronly = 1;

I am currently testing this patch, I will report back once I have
some results.