Search Site:

About

Linux

Printers?

Programming

Windows?

Download

Skins

Edit - To Do - AllRecentChanges

Recent Changes Printable View Page History Edit Page

For faxing I use HylaFAX on my home multipurpose linux server.

What does it do then?

It's a very powerful and fairly easy to use Open Source fax server that suits my modest needs:

  • ability to receive incoming faxes as PDF email attachments, so I can retrieve my faxes from anywhere.
  • ability to fax from your PC as you print, using a small print driver called WinPrint.
  • ability to be notified of any failure or success by email, to make sure that the recipient actually received the fax, or to let someone trying to fax you know that there is an issue.
  • ability to fax from anywhere through TCP requests on port 4559.

The problem

I wanted to be able to fax through my home server using my laptop at the office.This was a bit of an issue because of security concerns, but also because of a certain lack of information on how to do that properly and configure your firewall appropriately.

Firewall Configuration (HylaFAX Server)

In my case, I want to allow my home server to accept any incoming on Port 4559 (used by HylaFax), but only from my Office IP (I thankfully use fixed IPs):

  • configure your firewall to accept incoming TCP on port 4559.
  • Make sure that your hylaFAX configuration accepts requests from your server by editing the /var/spool/hylafax/etc/hosts.hfaxd file.
  • Make sure your firewall accepts passive connections from this port: in Linux, use modprobe ip_conntrack_ftp ports=21,4559.

I use the strong firewall scripts from Linux IP Masquerade HOWTO and added the ports=21,4559 to the script in the appropriate section (just search for ip_conntrack_ftp in the script).

To allow incoming requests from my office (let's pretend it's 22.56.124.56), I would have the following entries in the Optional Input section of the firewall script:

echo -e " - Allowing INCOMING access to the FAX server from the Office only"
$IPTABLES -A INPUT -i $EXTIF -m state --state NEW,ESTABLISHED,RELATED \
-p tcp -d $EXTIP --dport 4559 -j ACCEPT -s 22.56.124.56

Windows XP configuration (Client)

To print, simply follow the instructions from the WinPrint page with these added comments:

  • Go to Start->Coontrol Panel->Printers and Faxes and select the properties of the new HylaFax printer you just added.
  • Select the Ports tab and press Configure Port.... Make sure that the information entered there is right: in my config, the modem is on ttyS1 for instance, and the username and password have to match those you set up in the hosts.hfaxd file above.Your Server adderss must also be right of course. If you want to be notified by email of the success of failures, make sure the default notify is set to a valid email address.
  • If necessary, don't forget to configure the printer driver's properties to a minimum: disable any extra feeders or functionality offered by the print driver and make sure your paper size is correct.
  • Don't forget that you have to do that configuration in the Device Settings page and in the Printing Defaults of the Advanced page and on the Printing Preferences of the General page.

Now you should be set and be able to print. If you encounter issues, you can check a few things from the HylaFAX website.

Resources

Comments
jose@expertofficepc.comThursday 04 May 2006, at 18:39 GMT+8 [X]
In Fedora Core 5, ip_conntrack_ftp is loaded by default. You have to remove this from the sysconfig file because it only covers the default ftp port. Ironically when the service is restarted it loses the module if loaded by command line. I just modded the /etc/init.d/iptables script and added the modprobe line at the endof the start section. This way it will always load even if the iptables are reloaded.
jose@expertofficepc.comThursday 04 May 2006, at 19:58 GMT+8 [X]
Opps. This module isn't loaded by default, but I would still put the modprobe command in the start script to keep the setting regardless of firewall changes.. :)
EvgenyFriday 21 June 2013, at 18:59 GMT+8 [X]
KSongSeptember 26, 2012 I have been a customer with JustHost for atproximapely 2 years. I chose JustHost due to their promise of inexpensive unlimited service, and free domain name. By and large, I've been satisfied with the service I've received. They've never charged me unexpectedly, and have never complained of my usage patterns. From time to time, the service seems to go down, but its usually back within an hour. I would recommend JustHost to customers that need inexpensive service, and can tolerate some occasional downtime. If you require mission-critical no-downtime service, I would not recommend JustHost as being suitable to your needs.
GauravFriday 21 June 2013, at 23:06 GMT+8 [X]
We keep you all in our prayers daily.This is my cisoun. One reason I have a personal interest in the Marines even though I served in the US Navy like my father and brothers before me.LCpl. Joseph Timothy Keesee was a member of Delta Company, 1st Battalion, 9th Marines, 3rd. Marine Division, 3rd. Marine Amphibious Force.Joseph was posthumously awarded the Purple Heart for fatal wounds he received during combat action in Quang Tri Province, South Vietnam on 5/15/1967.Joseph was fatally wounded by hostile gun or small arms fire. He died outright. His body was recovered the same day.LCpl. Joseph Keesee is honored on the Vietnam Memorial Wall, Panel 19E, Line 128, in Washington, DC.A Patriotic Partner.Love in ChristDave
CarlosSaturday 22 June 2013, at 00:48 GMT+8 [X]
Dear Bro. Lee- I was at the C.O.R.E. Conference in 1989 in Garland. I have gone to Pastor's Schools and Conferences for over 40 years- THAT was the greatest one EVER! I was woedirnng if you had VIDEO/DVD of Leonard Ravenhill when he spoke on Monday night. I have the cassette tape, but would like to use it on my telecast that goes out to 48 stations across the USA. Please let me know. God bless you is my prayer!
AyaSaturday 22 June 2013, at 03:22 GMT+8 [X]
Hello David,Please check your personal email, we have sent two emlias to you. Instructor has mailed signed CPR certificates to your postal address that was provided on purchase-shipping form. Best way to contact us is by email as our administrative office is closed on Fridays.Kind Regards: AlexCPR Instructor
Enter your comment (no links allowed): Author:

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - Search - RSS -
Page last modified on Thursday 24 November 2005, at 02:26 GMT+8 - Viewed 4992 times