Smokes your problems, coughs fresh air.

Category: Technology (Page 24 of 47)

Setting a custom greeting for an Asterisk voicemailbox

By default, Asterisk always plays its own vm-intro as voicemail intro. To enable the user to record their own message, the entry in extensions.conf which sends a caller to the voicemail should be:

exten => _0123456789,n,Voicemail(1@<context>|s,u)

The s is to skip the default greeting. The u is for the unavailable message. You can also say b for busy message.

‘show application voicemail’ shows usage information and all the options you can give.

Making a port forwarded machine available from within the LAN

When you forward a port to an internal machine on the network, you still can’t access that host using your WAN-IP from within the LAN. This article explains it well. In short, it’s because the reply the machine your connecting to makes, goes to the LAN IP directly, and not back through the router.

To fix it, we need to add a SNAT rule for that port forward as well. In the example that we want to forward port 80 to 10.50.0.4 on our 10.50.0.0/16 LAN and 10.50.0.1 is our router, these two rules are necessary:

iptables -t nat -A PREROUTING -d WANIP -p tcp --dport 80 -m comment --comment "Forward www to 10.50.0.4." -j DNAT --to-destination LANIP
iptables -t nat -A POSTROUTING -p tcp --source 10.50.0.0/16 --dest 10.50.0.4 --dport 80 -j SNAT --to-source 10.50.0.1 --match comment --comment "Allow our LAN to access port 80 from the WAN side as well."

Normally when forwarding, I would not use -d WANIP, but –in-interface eth0, but that won’t work here, because the LAN requests are not on eth0.

Also, the –source in the second rule is not strictly necessery, but if you don’t specify this rule, it will also match incoming requests for the internet, which is ugly, especially if you have logging rules.

Disabling related after current tab open

I don’t like that firefox nowadays opens new tabs after the current tab. When I open stuff, I remember in which order I opened it and I don’t want that order changed by having tabs inserted.

Change:

browser.tabs.insertRelatedAfterCurrent

to false.

Burning media with wodim

Every time I want to burn media, I have to look up again what the syntax is. So, for future reference, this post.

CD ISO image:

wodim dev=/dev/sr1 -eject  ubuntu-10.04-server-amd64.iso

For DVD’s it’s different. If you mimick the above command, you will have a DVD with the ISO file on it. I don’t know exactly, but you have to specify /dev/dvd=image.iso or something. When the next time I burn a DVD ISO arrives, I’ll update this post.

Configuring a Debian exim server for internet delivery

I wanted an Exim server which could send mail on its own without the use of another SMTP server.

First see this for some general explantion.

I used this config file:

# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
#
# Please note that this is _not_ a dpkg-conffile and that automatic changes
# to this file might happen. The code handling this will honor your local
# changes, so this is usually fine, but will break local schemes that mess
# around with multiple versions of the file.
#
# update-exim4.conf uses this file to determine variable values to generate
# exim configuration macros for the configuration file.
#
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
#
# This is a Debian specific file
 
dc_eximconfig_configtype='internet'
dc_other_hostnames='existingdomain.com'
dc_local_interfaces='127.0.0.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

Also remember to put that existingdomain.com in /etc/mailname.

Goosh

For a Vimperator user like me, Goosh (the unofficial Google shell) is an obvious replacement for Google’s normal search page.

I’m not sure if I’ll ever really use it, because I tend to start my Google queries from Vimperator’s command-line, but nice to know that it’s there.

And there’s another bookmark deleted…

« Older posts Newer posts »

© 2024 BigSmoke

Theme by Anders NorenUp ↑