FreeBSD

280

Solutions

434

Contributors

FreeBSD is a free Unix-like operating system that is a direct descendant of BSD. FreeBSD contains a significant collection of server-related software in the base system and the ports collection, it is possible to configure and use FreeBSD as a mail server, web server, Firewall, FTP server, DNS server and a router, among other applications. Although FreeBSD does not install the X Window System by default, it is available in the FreeBSD ports collection. A number of Desktop environments such as GNOME, KDE and Xfce, and lightweight window managers such as Openbox, Fluxbox and dwm are also available to FreeBSD.

I have a freeBSD 11.1 box and it is configured to have password based authentication over SSH. I am wondering if it is possible to some kind of customized message if the user being authenticated is not available locally ( like no entry in /etc/passwd )?
0
I am new to PF firewall and looking for a simple PF rule to execute on my freeBSD 11.3 box.

I have a user named student and would like him to not able to send traffic outside on port 80 and 443

I am still reading the book "The Book of PF" and reading more to learn the basic. But I would really appreciate if someone can help on how can I achieve this? TIA
0
During the keyboard based password authentication if we provide wrong password then freeBSD system ask for password 3 times before giving it up. Is there a way I can restrict it to just 1 ? Like if someone give wrong password then no login, no need to ask again. TIA
0
I am new to PF firewall and looking for a simple PF rule to execute on my freeBSD 11.3 box. I tried to learn by doing but many times kept myself locked out of ssh :( hence looking for suggestion

1. I want only one 1 TCP connection from each source IP to port 22. If there is a existing connection to port 22 then new connection from same source IP would not be allowed
2. Also all IP can not use more than 1Mbps speed

I just bought the book "The Book of PF" and reading more to learn the basic. But I would really appreciate if someone can help on how can I achieve this? on my system PF is not enabled yet. TIA
0
How can we configure pam.d in freebsd to let a user login using ssh private/public key pair with having the user exist in /etc/passwd ( like in local system ). I meant user is not created in system but authentication can be done via public/private key of sshd. Pleas let me know if there is a way.
0
Hello,
I have FreeBSD , I have file on /usr/local/ the is contain:
client_name:ex
type:azz
licence:as
expiration:2019-09-23

Open in new window

I want to do a script that change it to :
client_name:123
type:1234wqwq
licence:4vwqwq
expiration:2020-09-23

Open in new window

I try with sed but I get an error with file path
thanks.
0
Running BIND9 on FreeBSD. rndc status says server is running. However, after a rndc freeze, I edited a zone file and removed some no longer needed entries. I updated the serial number so it would update the secondary server. I received an out of range error when I tried to reload the zone....and even if I try to rndc thaw the zone...I get the same out of range error.  After research on the web, It was recommended to delete the jnl file associated to the zone. Again even after that step, the reload returned an out of range error. Very cautious with updating the DNS as it's the primary for our network....

Please help. Also...It does NOT seem that my DNS is updating the secondary server.

Thank you
0
hello
I have a file name info.txt under /etc/
this file contain four lines the fourth line have expiration:data
I want to check this data if it's today+10Days then create a new file name:done.txt and contain done.
else do noting.
thanks.
0
Hello,
I have a FreeBSD and ubuntu server.
I crate a cronjob to execute in specific time. but the command that I do required a full privilege on system... so how I can make the cronjob work with root for example ?
thanks.
0
Hello,
I have a FreeBSD Hyper-V vm I want to secure it so no one can use it on other server hardware or run until I do something for it.
so can I do that ?
thanks.
0
I am trying to install FreeNAS from a USB on a server and am running into all sorts of problems. I have used UNetBootIn, Universal USB Installer, and ISO to USB to try to get the ISO on the stick, but they don't boot because there is a missing boot loader.  So I did a search and discovered that the only way to install from a Windows computer was to use Win32 Disk Imager.  However, that required an .img file and all I had was an ,ISO file.  So, I used PowerISO to make a .img file from the ,ISO file.  This resulted in:

No /boot/loader
FreeBSD/i386 boot
BTX halted

Can anyone provide any insights into how I am supposed to be doing this?
0
How to create a md (memory disk) file in freeBSD,

basically I want to keep / ( root ) in memory and hence I want to use memory disk ( md ). Also I want to ensure that it's like that boot over boot
0
Hi,

I created a few different zpool configs on ZFS using FreeNAS and I'm trying to figure out a way to reliably benchmark the performance.

I first tried it from a remote host connecting to an SMB share. In Windows I can't get any higher than 60 MBps. Both using a normal file copy (big file) and using various benchmarking tools. On linux I tried filling up a file using
to a smb mapped drive using a simple dd if=/dev/zero of=/mnt/cifs-share1/test1.img bs=1G count=5 There I get up to 106 MBps and then I guess I'm hitting the 1 Gbps Ethernet connection speed limit.

On to the host itself: So far I tried the default way using iozone which ships with FreeNAS. But the results seem to be high to be true so the question is how do I do it reliably and how to interpete the results?

The result I'm getting is:

    sudo iozone -i 0 -R -l 5 -u 5 -r 4k -s 10G | tee -a /tmp/iozone_results.txt
         
Excel chart generation enabled
        Record Size 4 kB
        File size set to 10485760 kB
        Command line used: iozone -i 0 -R -l 5 -u 5 -r 4k -s 10G
        Output is in kBytes/sec
        Time Resolution = 0.000001 seconds.
        Processor cache size set to 1024 kBytes.
        Processor cache line size set to 32 bytes.
        File stride size set to 17 * record size.
        Min process = 5
        Max process = 5
        Throughput test with 5 processes
        Each process writes a 10485760 kByte file in 4 kByte records

        Children see throughput 

Open in new window

0
Interestingly enough I have no problem using let's encrypt on Windows platform and figured it was going to be a breeze on *nix... Running into a slew of issues.  For one I am trying to use certbot to facilitate this.  When I issue the correct commands and webroot I see it builds the .well-known folder but it does not build the acme-challenge folder.  If I try to manually create the acme-challenge folder it deletes it after the sudo certbot certonly --webroot -w /var/www/example -d example.com -d www.example.com command (with my domain info substituted of course) with the following error:

Detail: Invalid response from
   http://<mysite>/.well-known/acme-challenge/bM6ijKNrbr6Dcf3nzJdyhssFHrySeeLk-2VWQgAlWnQ:
   "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   <html><head>
   <title>403 Forbidden</title>
   </head><body>
   <h1>Forbidden</h1>
   <p"
Super frustrated as everything in *nix is always easier, right?  Well not this time LOL.   Any suggestions would be appreciated!

-J
0
Hello,

  I would like to know if there is a way to create a Symlink-like file but with the difference that the file it points to gets executed when the link is read and the output is what I get from reading it.
  It should work on freebsd/linux.

Thanks

Best regards
0
I heard iOS is tailored from FreeBSD so I'm hoping to be able to do something like
"ps -ef |grep email_client_process"
if it's not there, then restart it.

Reason is our MobileIron email+ client kept getting killed by iOS as iOS sees it
as a 3rd party/foreign process.

any chance of doing this on an MDM controlled device?
0
I inherited a FreeBSD box that is forwarding email using Postfix through various JLS (jails).

Two days ago I switched the MX record(s) to point to a third party service that is going to replace this FreeBSD server.

When I log into the FreeBSD machine and look at the logs (specifically to see if mail is flowing), I see two or three messages in a handful of jails.

A week ago before the MX record change there would have been 20 emails every few minutes, so something obviously changed, which was expected.

What was NOT expected was to see ANY mail flow through the FreeBSD machine.

My question is: Should I expect to see some mail for an extended amount of time? I'm asking because I thought that once I changed the MX record - with a TTL of 300 for all 5 priorities - that it would handle all the mail.

Thanks for your help!
0
No matter what NTP server address i put in it says "server could not be reached". I tried setting it to force and rebooting it but that didnt do anything either. I'm not understanding why this wont work because i can clearly ping from FreeNAS to my other servers that i want to use as a reference.

I also tried doing it through shell but I don't know if I have the commands correct...
0
Hi everyone. I'm going crazy trying to join my FREENAS server to windows 2008 AD service. I've tried almost everything with no luck. I always get this message:
Unable to find domain controllers for innovateperu.local.
and the log shows:  
FreeNAS_ActiveDirectory_Base.get_SRV_records: no SRV records for _ldap._tcp.dc._msdcs.innovateperu.local found, fail!
I have attached some screenshots of my FREENAS configuration

PS.
My local domain is: innovateperu.local
ad_conf.png
cifs_conf.png
network_conf.png
config.png
krb5.png
resolv.png
smb4.png
0
I know that I can organize a single directory listing with:

LS -LTR

Open in new window


How would I look for all .php files on the whole drive, with the latest being at the bottom?

Any ideas?
0
Can I delete /root/authorized_keys in FreeBSD.  I've had some break-ins and want to cover all bases.
0
I'm trying to figure out what the very top (dot) directory is, and why it shows that it was created today.

dot directory
0
I'm having trouble getting FTP to work on our server.

When I check auth.log it contains:

Jul  5 13:06:29 216-55-xxx-xxx sshd[57421]: Accepted password for ftpuser from 67.177.xxx.xxx port 58996 ssh2
Jul  5 13:06:29 216-55-xxx-xxx sshd[57423]: subsystem request for sftp by user ftpuser failed, subsystem not found

Any ideas?  It's been a LONG time since I configured this server.
0
We have a FreeBSD Pfsense appliance on a physical Dell PE1950 in a remote office. It becomes essential for the appliance to send out an alert if its hard drive(s) got bad. How to accomplish that?
0
I'm wondering if a NUC of type DCCP847DYE would be a good basis for a home-made NAS and basic web server? I would like to run FreeBSD on it with ZFS for expanding storage. And how would i be able to add more storage, physically, as i went along?
0

FreeBSD

280

Solutions

434

Contributors

FreeBSD is a free Unix-like operating system that is a direct descendant of BSD. FreeBSD contains a significant collection of server-related software in the base system and the ports collection, it is possible to configure and use FreeBSD as a mail server, web server, Firewall, FTP server, DNS server and a router, among other applications. Although FreeBSD does not install the X Window System by default, it is available in the FreeBSD ports collection. A number of Desktop environments such as GNOME, KDE and Xfce, and lightweight window managers such as Openbox, Fluxbox and dwm are also available to FreeBSD.

Top Experts In
FreeBSD
<
Monthly
>