Monthly Archives: March 2013

Linux: share 3g connection with the internal network

It’s very easy to share an internet connection with iptables and NAT+IP Forward+IP Masquerade. But in my case I needed to share the 3G connection via wifi, and my computer’s nic is not able to work in ad-hoc mode. So … Continue reading

Posted in Linux | Leave a comment

Linux: 3G connection with wvdial

Simply configuration file for a Vodafone 3G connection with a Huawei modem: /etc/wvdial.conf [Dialer 3g] Phone = *99***1# Username = vodafone Password = vodafone Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = … Continue reading

Posted in Linux | 1 Comment

Linux: DHCP server

An example of a DHCP server in my R61: /etc/dhcp/dhcpd.conf: # Add lines like below# specify domain nameoption domain-name      “”; # specify DNS’s hostname or IP addressoption domain-name-servers,; # default lease timedefault-lease-time 600; # max lease timemax-lease-time 7200; … Continue reading

Posted in Linux | 1 Comment

Linux: a home firewall

A simple home firewall extracted from this web (in spanish) adapted to my needs: /etc/ #!/bin/bash #Source: IPTABLES=`which iptables` #-s to specify a source address #-d to specify a destination address #-p to specifiy a protocol #-i to specify … Continue reading

Posted in Linux | 1 Comment