Re: rsyslog

2013-07-17 Thread Pol Hallen
> ls /usr/local/share/examples/rsyslog/
> rsyslog-example.conf

thanks! Is there a pre-configured rsyslog.conf? That file missed all
base config like

/var/log/messages
/var/log/maillog

thanks

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


rsyslog

2013-07-16 Thread Pol Hallen
Hi all :-)

I just installed rsyslog7 but there isn't any /usr/local/etc/rsyslog.conf

Where I found a standard rsyslog.conf config file to put it to
/usr/local/etc?

thanks for help

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: openvpn routing

2013-07-16 Thread Pol Hallen
> This freebsd server in an internal lan server, IP 192.168.1.254.
> 192.168.1.212 is gateway on internet.
[...]

tap --> tun

solved :-)

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


openvpn routing

2013-07-16 Thread Pol Hallen
Hi all :-)

This freebsd server in an internal lan server, IP 192.168.1.254.
192.168.1.212 is gateway on internet.

I've an easy config:

DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.1.212  UGS 031807em0
10.20.10.0/24  10.20.10.2 UGS 00   tun0
10.20.10.1 link#5 UHS 00lo0
10.20.10.2 link#5 UH  00   tun0
127.0.0.1  link#4 UH  0 3478lo0
192.168.1.0/24 link#2 U   046116em0
192.168.1.254  link#2 UHS 00lo0

ifconfig

em0: flags=8843 metric 0 mtu 1500
inet 192.168.1.254 netmask 0xff00 broadcast 192.168.1.255
lo0: flags=8049 metric 0 mtu 16384
[...]
tun0: flags=8051 metric 0 mtu 1500
inet 10.20.10.1 --> 10.20.10.2 netmask 0x

Problem is: 10.20.10.2 is a gateway? why?

On clients I've this error:

OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and
no default was specified by either --route-gateway or --ifconfig options
Tue Jul 16 19:28:30 2013 us=860975 OpenVPN ROUTE: failed to parse/resolve
route for host/network: 10.20.10.0
Tue Jul 16 19:28:30 2013 us=861091 OpenVPN ROUTE: OpenVPN needs a gateway
parameter for a --route option and no default was specified by either
--route-gateway or --ifconfig options

openvpn server config:

port XXX
proto udp
dev tun
;dev-node tap0
ca /usr/local/etc/openvpn/XX.crt
cert /usr/local/etc/openvpn/XX.crt
key /usr/local/etc/openvpn/XX.key
dh /usr/local/etc/openvpn/dh2048.pem

server 10.20.10.0 255.255.255.0
push "route 10.20.10.0 255.255.255.0"

ifconfig-pool-persist /usr/local/etc/openvpn/ipp.txt 0

;duplicate-cn
keepalive 10 120
;cipher BF-CBC# Blowfish (default)
;cipher AES-256-CBC   # AES
cipher DES-EDE3-CBC  # Triple-DES
comp-lzo
user nobody
group nobody
persist-key
persist-tun
;status /var/log/openvpn-status.log
;log-append /var/log/openvpn.log
verb 10
mute 20
client-to-client
client-config-dir ccd "route 10.20.10.1 255.255.255.0"

ping-restart 0
tls-auth /usr/local/etc/openvpn/ta.key 0
plugin /usr/local/lib/openvpn/plugins/openvpn-plugin-auth-pam.so login
#tmp-dir /dev/shm

Almost same config on linux openvpn server runs. It's the server that
create correct route. But on freebsd I've 10.20.10.2 like automatic gw.

Any idea?

thanks!

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


install firefox without X

2013-06-18 Thread Pol Hallen
Hi all :-)

I need use -X ssh and use firefox on remote machine:

ssh -X -l user xxx host

Is there a way to install firefox without X? or less ports possible

thanks!

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: easy question about logcheck

2013-06-17 Thread Pol Hallen
> If you include logcheck in a cron job (hourly, daily, etc.), the cron
> system will send the email with its output.

After installed logcheck I didn't done any changes to cron... but I've
notify mails from logcheck

Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


easy question about logcheck

2013-06-17 Thread Pol Hallen
Hi all :-)

I just configurated logcheck and everything is perfect :-)

A question: where is the script that handle to send email?

I check also with pkg_info -L but I didn't see any script that send email

thanks for help!

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


mail from Charlie

2013-06-13 Thread Pol Hallen
Hi all :-)

I use 9.1... I don't known why, from yesterday I didn't received any
mail from Charlie :-/

postfix runs perfectly and I don't known how investigate about this
problem...

Also portaudit should be send an email?

thanks for help!

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


quota advice

2013-06-01 Thread Pol Hallen
Hello all :-)

I using quota and I've a doubt: many howto advice to put to cron
something like:

quotacheck -vguma

but the problem is:

quotacheck: Quota for users is enabled on mountpoint /data so quotacheck
might damage the file.
Please turn quotas off or use -f to force checking.

So... can be a good idea, put:

quotaoff -a
quotacheck -vguma
quotaon -a

to script to do this check or there is another way?

thanks for help!

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: openvpn and tap device

2013-05-29 Thread Pol Hallen
> It's a while since I looked at OpenVPN, so this is from unreliable
> memory, but IIRC it uses tap devices under Windows and tun devices under
> Unix(ish) OSes. Do you see tun0 appear?

sorry for the mistake: tun device

I don't have any tun devices but I can use openvpn to connect to other vpn 
client

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


openvpn and tap device

2013-05-28 Thread Pol Hallen
Hi all!

I installed openvpn (I use it like client).

There isn't any "openvpn_enable=YES" and openvpn_if="tap" in rc.conf but
after start openvpn I can connect to openvpn server and clients.

ifconfig doesn't show me any tap interface

is it a correct situation?

thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


freebsd-stable/release?

2013-05-21 Thread Pol Hallen
Hi all :-)

quick question: for a production server, what it best way?

now I using the release:

9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:11:52 UTC 2013
   r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

thanks!

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


filesystem advice

2013-05-21 Thread Pol Hallen
Hi all and sorry for this (newbie) question.

I study FreeBSD (I come from linux) and I'm not sure which filesystem use.

My situation: install a fileserver (samba) for 3 clients and put it as
gateway/server on internet (ssh, and samba to internal lan).

I installed FreeBSD with raid 1 following this howto:

http://www.ateamsystems.com/blog/Installing-FreeBSD-9-gmirror-GPT-partitions-raid-1

everything ok!

I see that use ufs filesystem, now:

I'd like have less maintenance possible direclty to machine because this
server is far to me 50Km.

So I can use ssh for default (and extra) maintenance.

Which filesystem is "better"? After total crash of system (i.e.) or
black-out, ufs can repair it by itself? Or better use ufs+journal? or zfs?

Motherboard is atom dual core with 2Gb of ram and 2 disks with 2Gb each.

Thanks for the help!

Best regards

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: route problem

2013-05-20 Thread Pol Hallen
> If you don't mind could you post the output of ifconfig from both boxes?

server1:

re0: flags=8843 metric 0 mtu 1500

options=8209b
ether 70:71:bc:94:c3:6d
inet 192.168.1.250 netmask 0xff00 broadcast 192.168.1.255
inet6 fe80::7271:bcff:fe94:c36d%re0 prefixlen 64 scopeid 0x1
nd6 options=29
media: Ethernet autoselect (100baseTX )
status: active
xl0: flags=8843 metric 0 mtu 1500
options=80008
ether 00:60:08:6d:59:50
inet 192.168.2.250 netmask 0xff00 broadcast 192.168.2.255
inet6 fe80::260:8ff:fe6d:5950%xl0 prefixlen 64 scopeid 0x7
nd6 options=29
media: Ethernet autoselect (100baseTX )
status: active
lo0: flags=8049 metric 0 mtu 16384
options=63
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
inet 127.0.0.1 netmask 0xff00
nd6 options=21

server2

fxp0: flags=8843 metric 0 mtu 1500
options=2009
ether 00:0f:fe:b3:db:8c
inet6 fe80::20f:feff:feb3:db8c%fxp0 prefixlen 64 scopeid 0x6
inet 192.168.2.52 netmask 0xff00 broadcast 192.168.2.255
nd6 options=29
media: Ethernet autoselect (100baseTX )
status: active
plip0: flags=8810 metric 0 mtu 1500
nd6 options=29
lo0: flags=8049 metric 0 mtu 16384
options=63
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
inet 127.0.0.1 netmask 0xff00
nd6 options=21

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: route problem

2013-05-20 Thread Pol Hallen
> Try:
> route add 192.168.1.0/24 192.168.2.250

does not run :-(

Pol

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


route problem

2013-05-20 Thread Pol Hallen
Hi folks! On my lan I've:

server1

re0 - 192.168.1.250
xl0 - 192.168.2.250

default192.168.1.212  UGS 0  189re0
127.0.0.1  link#8 UH  0   18lo0
192.168.1.0/24 link#1 U   0 6145re0
192.168.1.250  link#1 UHS 00lo0
192.168.2.0/24 link#7 U   0 2282xl0
192.168.2.250  link#7 UHS 00lo0

and gateway_enable="YES"

from server1 I can ping whole lan: 192.168.1.0/24, 192.168.2.0/24

from server2

re0 - 192.168.2.52

DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.2.250  UGS 0 8450   fxp0
127.0.0.1  link#8 UH  00lo0
192.168.2.52   link#6 UHS 00lo0

I can ping 192.168.2.0/24 and ONLY 192.168.1.250.

I need ping 192.168.1.0/24 lan but I can only see 192.168.1.250

any idea?

thanks!

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


upgrade packages

2013-04-25 Thread Pol Hallen
Hi all!

I come from linux os and I read a lot documentations about freebsd.

I've a doubt: when I've some packages installed and I need upgrade it, I
need to recompile those packages or there's another (fast) way to do this?

thanks!

Pol

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: request

2006-07-21 Thread Pol Hallen
On Friday 21 July 2006 10:38, [EMAIL PROTECTED] wrote:
> Hello, I need of documentation Howto configure PPPoE access concentrator
> on FreeBSD 6.1
Try to read the freebsd handbook :-) or search PPPoE howto with google :-)
 
Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Grave problem with network (ftp, samba)

2006-03-01 Thread Pol Hallen
Hi all :-)

i have a p4 with freebsd 5.4 with samba daemon active

when the windows clients download from samba server it's ok.

But if while I use a ftp on server 4 transfer a big files, the windows client 
don't try to download from samba! because don't respond! for since several 
minutes.. :-(

if i see in top the resource of samba, it's about 40%

waiting a several minutes the samba resourse cameback ok!

In /varl/log nothing...in console nothing..

what appended?! hot resolve the problem?

the controller of mother b. is ok UDMA133, my hardware and modules are ok

Thanks thanks thanks :-)
 
Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: System Burn In

2006-02-28 Thread Pol Hallen
> What is the best way to 'burn in' or 'stress test' a new system w/ FreeBSD?
> I'd like to stress test the CPU, Memory, Disk, etc.. To make sure the
> hardware is 100% good before putting it in production.
look4 in /usr/ports/benchmark

forkbomb, etc.

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: idle, standby, suspend harddisk

2006-02-27 Thread Pol Hallen
> After a "atacontrol detach" the disk spins down. Better umount it first
> or the system will hang if you use that disk again.
> You have to use atacontrol to attach it again.
It's a very good idea! ;-)

i'll do a script to umount fs and atacontrol detach..

well, how wait about 10 minutes of inactivity of the disk and excute a script? 
And while a client (samba) open a share dir on that disk?

mhmhm...i think is hard!
 
Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


idle, standby, suspend harddisk

2006-02-27 Thread Pol Hallen
Hi all :-)

i have a server with several hd always on

i want idle hard disk after several minutes

the bios of mother b. is not good for do this, and i'd like use a software 
which atailde or others..

with ataidle i can idle my hd but how check if hd is really in idle mode?

Are there others ports 4 do this?

With linux i use hdparm, but there isn't on freebsd.

Anyone can i help me? 

Thanks :-)
 
Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


freebsd firewallS

2006-02-27 Thread Pol Hallen
Hi all,

i'd like build a rules firewall 4 my machine on the internet and my lan.

I see: IPFW, PF, IPF.

I have a main server on the internet and several clients.

Which firewall package i should use?(study)

I known iptables (4 linux) and i wrote a rules for it, but i prefer use a 
native freebsd firewall :-)

Anyone can i suggest me? Thanks very much :-)

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


rl0 discard oversize

2006-02-26 Thread Pol Hallen
Hi all :-)

I have a fbsd 5.4
today while copy a lot files (several Gb) the network saturation...and don't 
responding of ping :-(

in dmesg i see:

rl0 discard oversize frame (ether type 4a82 flags 3 len 38118 > 1514

ok, i tried 

ifconfig rl0 mtu 1400 but i have the same problem, i tried 1420, 1450, etc. 
but while copy the network go down 4 several seconds.. if i wait (20/40 
seconds) the network come-back normal..

i tried too change my network card but nothing...

where is the problem?

this is my main server.. and indispensable 4 my work!

sorry 4 my bad english...and thanks!

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"