FreeBSD

261

Solutions

1

Articles & Videos

405

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.

Share tech news, updates, or what's on your mind.

Sign up to Post

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
Free Tool: Path Explorer
LVL 8
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

I have a mail server on a FreeBSD box. Can you tell me how to tell what kind of email server is running on this FreeBSD?
0
Hello,
I was transferring data to freenas storage and storage hung. I restated freenas and not receiving error and hangs at mountroot. Introed to boot from a different snapshot which is the environment boot menu without luck. Any soiutions?
Have customer data stuck in freenas.
Thanks
Felipe
0
Hi
I am trying to make Squid working on FreeBSD 11
I have two NIC's internal INT_IF and external EXT_IF.

My NAT is working but I am not sure if this is redirection issue or squid.conf

--- /etc/pf.conf
nat on $EXT_IF from !($EXT_IF)->($EXT_IF:0)
rdr on $INT_IF inet proto tcp from any to any port www -> 127.0.0.1 port 3128

pass in  on $INT_IF inet proto tcp from any to 127.0.0.1 port 3128 keep state
pass out on $EXT_IF inet proto tcp from any to any port www keep state


pass in quick on { lo0 $INT_IF } all
pass out quick on $EXT_IF inet proto {tcp,udp} from any to any keep state

pass out quick on $EXT_IF inet proto { tcp,udp,icmp} all

Open in new window



-- squid.conf---
maximum_object_size 30000 KB
maximum_object_size_in_memory 40 KB

acl localnet src 10.1.0.0/24
acl localnet src 172.16.15.0/24

acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT


http_access deny !Safe_ports

http_access deny CONNECT !SSL_ports

http_access allow localhost manager
http_access deny manager


http_access allow localnet
http_access allow localhost

Open in new window

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
I'm trying to configure my server firewall to only accept connections that are coming from an Xfinity user.  I don't have a static IP, but was wondering if Xfinity owned a block, or something like that.

I'm setting this up on a FreeBSD server.
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
Technology Partners: We Want Your Opinion!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Just got word that there has been "suspicious activity" on my server.  It has something to do with the file mysite.com/.mail

Can someone help me lock things up?

I've changed my root password so far.

System is FreeBSD
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 easily expandable for storage (NAS) purposes. 'Unboxing' shows a SATA socket (see attached)
nuc.pdf
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
Hi there, i need to extract from a FreeBSD server running Qmail the list of all domains and mailboxes, and for each mailbox in the domain the space used.

Example format needed:
Domain1   user1  120MB
Domain1   user2  200MB

Domain2  user1  50MB
Domain2  user2  30MB

and so on...


I wrote the following script that does a partial job:

du -h /usr/local/vpopmail/domains/ |sort -n|grep Maildir$ |tail -15000 |awk -F'/' '{print "Space Used: "$1"\t Domain: "$6,"\t\t\tMailbox:"$7}'

Open in new window


This mainly works, however the main problem is that in the /usr/local/vpopmail/domains/ folder there are also folders "0", "1", "2" containing domains inside (something like postfix does i guess) that i cannot count. So the above command counts correctly only the domains inside /usr/local/vpopmail/domains/$domain_name but not the /usr/local/vpopmail/domains/0/$domain_name.

Anyone can help me please?

Thank you all in advance
0
Hi,
We are running the latest VMWare VSphere Essentials 6.0.1 environment where we have three hosts and a couple of SANs shared via iSCSI.  One of the hosts is a Dell PE630 with a rather big local storage volume.
Can this local volume be exposed to other hosts and VMs via iSCSI just like our SANs volumes are..?
If yes, how do I do that?
Thanks for comments
regards Tor
0
I have to manually migrate our DNS servers from the FreeBSD to Microsoft DNS.  We tried the run zone transfers from the Microsoft DNS servers to FreeBSD but had no luck so the next best option is to manually create all the entries.  Just curious if anyone has any suggestions on what we need to do to successfully migrate all those entries over.  What all are those records that we need to copy over to the Microsoft Active Directory servers (A records..NS records)?  The reverse  zone files and records should be created automatically on the new servers when clients start joining and accessing the networks?

thanks!
0
What is wrong with by shell script?
#!/bin/bash

numberFirst=1
jump=100
max=500

while [ $numberFirst -le $max ]
do
 numberLast=$(( numberFirst+$jump-1 ))
 curl 'http://my_domain.com/new_crm/migration/db_Contacts.asp?numberFirst='$numberFirst'&numberLast='$numberLast   -o '/data/x'$numberFirst'_'$numberLast'.txt'

/usr/local/bin/mysql --defaults-file=/conf/m.conf << EOF
use mydb;
LOAD DATA LOCAL INFILE '/data/x'$numberFirst'_'$numberLast'.txt' 
INTO TABLE Contacts  
CHARACTER SET UTF8
FIELDS TERMINATED BY '###|COLUMN|###' 
OPTIONALLY ENCLOSED BY '"'
LINES  TERMINATED BY '###|ROW|###';
EOF

numberFirst=$(( numberFirst+$jump ))
done

Open in new window

I get an error:
Syntax error: end of file unexpected
0
Enroll in June's Course of the Month
LVL 8
Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Does anyone know how to disable the firewall configuration on a Free BSD server?  DNS service is hosted on it and I need to do a zone transfer but it doesn't seem to allow it as there are some kind of firewall settings that is preventing it.  I am trying to avoid having create the records manually as we need to migrate it to a Windows DNS server.
0
My file system is full and I'm having a hard time trying to find space.  I don't know how to get to that first drive:

full.jpg
I'm using FreeBSD.
0
I am running a apache web server and then doing reverse proxy to confluence server. when I try to upload some files to confluence server (less than 100MB) it woks fine (it takes around 3 minute to upload)

but I have one big file close to 300MB which takes more than 10 minute to upload and upload gets failed and I get below error:

Proxy Error 502 : The proxy server received an invalid response from an upstream server

Open in new window


Here is my proxy configuration.

#Rewrite rule for Confluence
RewriteCond     %{HTTP_HOST}    ^confluence.example.com     [NC]
RewriteRule     ^/(.*)$ http://11.22.33.44:8090/$1        [P]
ProxyPassReverse / http://11.22.33.44:8090/

I believe issue would be related to timeout setting somewhere. Appreciate if someone can help me in fixing it.
0
We use McAfee's SaaS Email Protection as a anti-spam gateway. Our MX records are properly set up so all mail to the domain goes through the gateway. However, we have found that some spammers are able to bypass the service entirely by sending mail directly to the IP address instead of the MX record.

McAfee says this:
Lock Down
Prevent attackers from bypassing the SaaS Email Protection by configuring your email server or firewall to only allow SMTP connections from the IP space used by the service.
Here are the IPs in various notation types. If you provide these to your e-mail provider, they should be able to lock down your e-mail connection to only accept inbound mail from McAfee EPS and prevent this type of message from reaching your firm in the future.

I have the IP list from McAffee in CIDR/21 and CIDR/24 formats as well as individual IP addresses. I manage the email server myself, but not sure where or how to enable this. Perhaps in /usr/etc/access ?

I do not believe the configuration is specific to FreeBSD platform, probably any Linux or other server running Sendmail.

Looking for some instructions on exactly how to configure this. Thanks in advance!
0
Good day, dear colleagues!
I have several NASes based on 9.3.0.2 - Nayla (revision 1349)
My goal is to be able to mount and unmount encrypted ufs partitions (mnt1 & mnt2) via SSH
Now I’m able to connect to SSH via root account, so what should I do next?
Thanx in advance :)
putty-window.jpg
0
Hi, looking for an Hardware appliance that will serve as a DNS server, handle Internet restrictions (white/black lists), maybe Proxy.  We currently are using FREEBSD with Squid, OpenDNS. to do what we need to do, but too many issues and support issues.  Looking for something more enterprise level.
Any suggestion?
0

FreeBSD

261

Solutions

1

Articles & Videos

405

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
>

No Top Experts for this time period. Answer questions to earn the title!