Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Tue Jan 17, 2017 12:40 pm


News News of BSD Operating Systems

Site map of BSD Operating Systems » Forum : BSD Operating Systems

FreeBSD tutorials and how-tos

 [ Total topics 13 Go to page 1, 2

Message
 Post subject: BGP question
PostPosted: Thu Jun 02, 2016 1:06 pm 
i have situation where i'm receiving a /26 subnet via CPE router and i only want to advertise /29 subnet to EBGP. is there any way to do that? i can't advertise whole /26 as it breaks other customer. Note: /29 prefix does not
live on the box so i can't advertise them directly. Any help would be highly appreciated.

Note: working on Juniper MX.

So far what i did is

static {
route 24.206.51.32/29 ...

Read more : BGP question | Views : 169 | Replies : 0

Top
 Post subject: Mac OS X - File metadata and file extended attributes - mdls and xattr
PostPosted: Wed Feb 11, 2015 7:41 pm 
$ mdls Icon^M
kMDItemContentCreationDate = 2015-02-11 23:36:52 +0000
kMDItemContentModificationDate = 2015-02-11 23:36:52 +0000
kMDItemContentType = "dyn.ah62d4rv4gk80w25tr2"
kMDItemContentTypeTree = (
"public.data",
"public.item"
)
kMDItemDateAdded = 2015-02-11 23:36:52 +0000
kMDItemDisplayName = "Icon "
kMDItemFSContentChangeDate = 2015-02-11 23:36:52 +0000
kMDItemFSCreationDate = 2015-02-11 23:36:52 +0000
kMDItemFSCreatorCode = "MACS"
kMDItemFSFinderFlags = 16400
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 1
kMDItemFSIsExtensionHidden = 1
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "Icon "
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501 ...

Read more : Mac OS X - File metadata and file extended attributes - mdls and xattr | Views : 706 | Replies : 0

Top
 Post subject: FreeBSD: monitor network interface traffic throughput - exploring systat
PostPosted: Mon Feb 02, 2015 7:17 pm 
FreeBSD has a builtin utility called "systat" for retrieving system statistics: CPU cycles, disk I/O, virtual memory, TCP/IP statistics.

Interface traffic flowing throughput can be shown with "systat -if 1". First argument informs systat to use interface display and the second the refresh time - 1second.

Command manual:
Quote:
NAME
systat -- display system statistics

SYNOPSIS
systat

DESCRIPTION
The systat utility displays various system statistics in a screen ori-
ented fashion using the curses screen ...

Read more : FreeBSD: monitor network interface traffic throughput - exploring systat | Views : 1947 | Replies : 0

Top
 Post subject: FixIT: htpasswd.c:133: undefined reference to `apr_generate_random_bytes'
PostPosted: Fri May 10, 2013 7:29 am 
As of 2010, 'dev/apr' freebsd port has been changed to 'dev/apr1'. More details in /usr/ports/UPDATING.
Quote:
# less +/20100518 /usr/ports/UPDATING
20100518:
AFFECTS: users of devel/apr0, devel/apr1, www/apache20, www/apache22
AUTHOR: pgollucci@FreeBSD.org

devel/apr port has been renamed to devel/apr1.

WITH_APR_FROM_PORTS=yes for www/apache22 has been dissolved and may be
removed from your configuration files; devel/apr1 is always used now.

Please manually delete apache-2.\* if installed _before_ updating using
either portmaster or portupgrade:

pkg_delete -f ...

Read more : FixIT: htpasswd.c:133: undefined reference to `apr_generate_random_bytes' | Views : 467 | Replies : 0

Top
 Post subject: Changing man path when having multiple man files from daemons with the same name
PostPosted: Thu Apr 07, 2011 6:50 am 
When having multiple man files from multiple daemons with the same name (ie: /usr/share/man/man8/tftpd.8.gz from freebsd stock tftpd daemon and /usr/local/man/man8/tftpd.8.gz from yale-tftpd packet), the man tftpd command will show the content of the default tftpd.8.gz man page (/usr/share/man/man8/tftpd.8.gz).

Code:
# pkg_info -L freebsd*; pkg_info -L yale*
Information for freebsd-tftp-1.0:

Files:
/usr/bin/tftp
/usr/libexec/tftpd
/usr/share/man/man1/tftp.1.gz
/usr/share/man/man8/tftpd.8.gz

Information for yale-tftpd-3.0:

Files:
/usr/local/libexec/tftpd
/usr/local/man/man8/tftpd.8.gz


If you want to see the man page from yale-tftpd (/usr/local/man/man8/tftpd.8.gz), you can change ...

Read more : Changing man path when having multiple man files from daemons with the same name | Views : 194 | Replies : 0

Top
 Post subject: FreeBSD - Can't locate Mail/Header.pm in @INC (@INC contains:
PostPosted: Thu Jul 29, 2010 3:00 am 
While running the cyrus2courier perl script, I ran into the following error:
Quote:
# /usr/bin/perl /tmp/maildir2cyrus-uid-internaldate
Can't locate Mail/Header.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /tmp/maildir2cyrus-uid-internaldate line 60.
BEGIN failed--compilation aborted at /tmp/maildir2cyrus-uid-internaldate line 60.



For this, the perl MailTools module is needed.

To install Mail-Tools perl module on FreeBSD:
# make install -C /usr/ports/mail/p5-Mail-Tools
===> License check disabled, port has not defined LICENSE
=> MailTools-2.06.tar.gz doesn't seem to ...

Read more : FreeBSD - Can't locate Mail/Header.pm in @INC (@INC contains: | Views : 690 | Replies : 0

Top
 Post subject: FreeBSD: php 5.3.2 configure error: xml2-config not found. Please check your libxml2 installation.
PostPosted: Thu Jul 22, 2010 1:41 pm 
To fix this behavior:

The error was:
Quote:
.........
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/local
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org and attach the
"/usr/ports/lang/php5/work/php-5.3.2/config.log" including the output of the
failure of your make command. Also, it might be a good idea to provide ...

Read more : FreeBSD: php 5.3.2 configure error: xml2-config not found. Please check your libxml2 installation. | Views : 519 | Replies : 0

Top
 Post subject: FreeBSD: Apache 2.2.15 (custom location) + mod_fcgid
PostPosted: Thu Jul 22, 2010 1:07 pm 
After installing Apache 2.2.15, mod_fcgid port is trying to download and install httpd-2.0.63.tar.bz2 (Apache 2.0).

I found no other way of making mod_fcgid work with apache 2.2.15 already installed on custom location (/opt).

workaround:
Code:
# ln -sf /opt/apache-2.2.15_9/sbin/apxs /usr/local/sbin/apxs

# make install PREFIX=/opt/mod_fcgid-2.3.5 USE_APACHE=2.2


And that's it. Mod_fcgid installs nicely with apache 2.2.15 installed in a custom location.

Read more : FreeBSD: Apache 2.2.15 (custom location) + mod_fcgid | Views : 310 | Replies : 0

Top
 Post subject: SSH disable password login for root (only allow public key authentication)
PostPosted: Mon Jul 12, 2010 3:50 pm 
SSH (Secure SHell) is a system that allows remote login to Linux/*BSD servers or VPS servers securely, traffic between ssh client and server being encrypted as well as the username and password used to login.
In certain scenarios, root password login only or global password login should be restricted to increase the security level of the intended VPS server. This is done in tandem with SSH Key authentication (see https://vpsie.com/ssh-key-authentication-linux-vps-server/) to avoid loosing access.

In ...

Read more : SSH disable password login for root (only allow public key authentication) | Views : 12880 | Replies : 1

Top
 Post subject: FreeBSD ifconfig display capability and supported media types for an interface
PostPosted: Thu Jul 08, 2010 6:26 am 
FreeBSD ifconfig display capability and supported media types for an interface

ifconfig FreeBSD utility is used to configure network interface parameters. To display the capability and supported media types of an interface the -m argument must be used.

Ex:

# ifconfig -m em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=5b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING>
capabilities=5b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING>
inet 82.78.227.177 netmask 0xfffffff0 broadcast 82.78.227.191
ether 00:04:23:c7:94:50
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
supported media:
media autoselect
media 1000baseTX
media 1000baseTX mediaopt full-duplex ...

Read more : FreeBSD ifconfig display capability and supported media types for an interface | Views : 1172 | Replies : 0

Top
 [ Total topics 13 Go to page 1, 2


Last 10 active topics


Junos Tips & Tricks

No new posts MTR / My traceroute in Junos
View the latest post

VPS Hosting & Security

No new posts Host a gmod server on a vps or shared host?
View the latest post

Juniper virtual MX (vMX)

No new posts Juniper Virtual MX (vMX) 14.2R5.3 Phase 2 (RE and MPC on different VMs)
View the latest post

OpenLDAP - Lightweight Directory Access Protocol

No new posts cannot login in linux system with ldap user after changing the ldap user password
View the latest post

PHP and other web technologies

No new posts php
View the latest post

TCPdump & Wireshark tips & tricks

No new posts Tcpdump - dump HTTP headers as ASCII and HEX
View the latest post

Security, NAT, Policies, Screen, Flow, TCP

No new posts ROUTING INSTANCE is not working on firewall srx210
View the latest post

Routing and dynamic routing protocols

No new posts Junos "show bgp summary" shows different outputs for neighbors
View the latest post

Memory, Storage, Backup and Filesystems

No new posts Restoring data from a Seagate 2BAY NAS with lost configuration
View the latest post

TCP/IP Networking

No new posts TCP ack after two packets
View the latest post

Login

Username:   Password:   Log me on automatically each visit  

Statistics

Statistics

Total posts 594 | Total topics 964 | Total members 1112



News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO