Ericsson p910, Linux, Mobical

Finally I got my p910 back from the repairs (had problems with screen). Playing around with it during weekends (oh yes – I was missing it a lot) and I have managed to sync my contacts from p910 via bluetooth and my laptop running fedora 8 to mobical. This was more than critical for me after I didn’t have access to my phone contacts for few months.

The major problem for me was to make p910 utilize internet of my laptop through bluetooth. There are a lot of how-tos, but all of them were missing smthing :(. Here how it worked for me (originally found here):
Put the following into /etc/ppp/peers/dun

460800
debug
ipcp-accept-remote
192.168.1.1:192.168.1.2
MS-DNS <IP of DNS server used by linux box>
lock
crtscts
noauth
defaultroute

Then put this to /etc/sysconfig/iptables:

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT – [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -i ppp0 -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp –icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p UDP –dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p UDP -m UDP –dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT –reject-with icmp-host-prohibited
COMMIT
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -i ppp0 -j MARK –set-mark 0×9
COMMIT
*nat
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -m mark –mark 0×9 -j MASQUERADE
COMMIT

Then run the next set of commands (as root):

/sbin/service bluetooth start
/sbin/sysctl net.ipv4.conf.all.forwarding=1
/sbin/service iptables restart
dund –listen –encrypt call dun

Here we finished with Linux setup. Now get yourself a GnuBox application for p910. Follow the instructions on how to set it up on the GnuBox website. Finally, open gnubox, go to Options -> 2box Bluetooth -> LAN Access server, select your linux box in a list of devises, tell “Yes” when asked about encryption. Done, now you can use internet with “Bt” dialup account from your phone (refer to GnuBox setup instructions) and it will take you the whole path through linux to internet :)

The mobical part is easy – just register there and you will get an auto-configuration SMS for your p910. Now you can sync in any direction :)

FreeNX works again

Quite a while ago I wrote a post mentioning a problem with fonts when using RDP over FreeNX. Now it seems that the problem is fixed and everything works. I have reinstalled the freenx server on my FC5 server (the latest version available for fc5 from yum repos I have is 0.6.0) and also put a latest (3.1.0) nx client on my fedora 8 laptop. Things just work :)  and they are really fast and easy.

Two internet connections: how is better (past year)

I have noticed a post called “Two internet connections: how is better” I posted two years ago in the “This week last year” box on the right of my blog. That time I did two firewall and so on (as explained in the that post), but now everything has changed and I am glad.

First of all I got a server with 3 ethernet cards and put all the ends into it (two WANs and one LAN). Then I setup load balancer and line failover which works really great. All of the above was done with pfSense firewall (which I really love and have installed at many places, including three places I maintain, plus my computer supplier office as well as two offices of Kean factory). pfSense works just great and has a lot of functionality free of charge :)

Currently I have tested all basic things like DNS forwarder, DHCP, filtering and so on, plus IPSec (static-to-static, static-to-mobile_client), PPTP, Load Balancer,  Traffic Shaper, Failover and ntop module.

Passed one more BrainBench test

I have found one more sponsored test on BrainBench (Firewall Administration Concepts) that I thought I would be able to pass and I took it. Good news – I did pass it :)

FC6 FreeNX RDP and fonts

For the past few months I have been using FreeNX a lot for remote support of all kinds of server. I got so used to this tool and now I have a problem with it. After I have installed Fedora Core 6 on my laptop, the NXclient does not show any fonts/text in the remote window during the RDP sessions :(

I have checked everything I could, but still can not fix the problem, so if you have the same problem and you get a fix, please let me know, since my life is getting harder with no FreeNX :(