CTT – Correios de Portugal check-digit

CTT - Correios de PortugalI was unable to find anywhere a Portuguese national postal service, package registry number check-digit validation. So, I politely asked them and soon after a PDF describing the algorithm was on my desk.

It’s pretty simple and standard stuff (only an awkward multiplier order of each digit), so the best way to describe it’s with a validation function in PHP (even for non PHP users/programmers should be simple to enough to understand at a glance):

function checkDigitCTT($ref) {
    if (! preg_match('/^[a-z]{2}[0-9]{9}[a-z]{2}$/i', $ref))
        return false;
            
    $digits      = substr($ref, 2, 9);
    $multipliers = array(8,6,4,2,3,5,9,7);
        
    $tmp = 0;
    foreach ($multipliers as $k => $v)
        $tmp = $tmp + (((int) $digits[$k]) * $v);
			
    $tmp = round($tmp % 11);

    if ($tmp == 0)
        $check_digit = 5;
    else if ($tmp == 1)
        $check_digit = 0;
    else
        $check_digit = 11 - $tmp;
			
    if ($check_digit == ((int) $digits[8]))
        return true;

    return false;
}

Raspberry PI open hotspot for your company site(s) only

Raspberry HotspotThe problem is really simple, you want/need to give open Wifi to your customers (let’s say inside a shop), but to you own company website (or websites) only. And nothing else, no other resources in the (internal or external) network.

The solution is simple and it comes in a tiny format… you will just need a Raspberry PI with a Wifi USB dongle that supports AP mode. Your company website should have an exclusive IP address

Side note: as normal, I’m not liable for any kind of mess, data loss, massive meteorite smash or other apocalyptic event in your world due to this guide.

Have the PI installed with the latest Raspbian, booted and logged in as root (sudo -s or equivalent).

Update the software sources:

apt-get update

Install the required software

apt-get install hostapd dnsmasq

Configure the wireless interface with a static IP address,
edit /etc/network/interfaces

iface wlan0 inet static
address 10.0.0.1
netmask 255.255.255.0
broadcast 255.0.0.0
# pre-up iptables-restore < /etc/iptables.rules

and restart the interface

ifdown wlan0
ifup wlan0

Here I choosed the 10.0.0.1 address to isolate the Wifi guests from the 192.168.1.x internal network. You should adapt it according to your existing set-up.

edit /etc/default/hostapd

and replace
#DAEMON_CONF=””

with
DAEMON_CONF=”/etc/hostapd/hostapd.conf”

now edit (it’s a new file) /etc/hostapd/hostapd.conf

For a full list of switches and whistles please do refer to http://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf, we go with a very minimalistic (but functional) configuration

interface=wlan0
ssid=WIFI-FREE-AS-BEER
channel=0
macaddr_acl=0
auth_algs=1
wmm_enabled=0
driver=nl80211
hw_mode=g
ieee80211n=1

Here we can start the service.

service hostapd start

and I got the dreadful failed in red font… a lsusb command quickly showed the infamous RTL8188CUS chip:
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

Thanks to the good people of the Internets you get a quick fix (you are downloading an external binary… so cross your fingers before installation, and nothing bad will happen to your PI… well, it worked for me).

wget http://dl.dropbox.com/u/1663660/hostapd/hostapd
chmod 755 hostapd
mv /usr/sbin/hostapd /usr/sbin/hostapd.ori
mv hostapd /usr/sbin/

and change in /etc/hostapd/hostapd.conf
driver=nl80211
to
driver=rtl871xdrv

service hostapd start

service [….] Starting advanced IEEE 802.11 management: ok
hostapdioctl[RTL_IOCTL_HOSTAPD]: Invalid argument

Even with the warning output the service managed to start and work correctly.

By now there should be an open network called WIFI-FREE-AS-BEER available to log in, but the process will stall in the Obtaining IP Address stage. So it’s time to move to the DHCP and DNS server.

Edit /etc/dnsmasq.conf, and place at the end of the file the lines

address=/#/aaa.bbb.ccc.ddd
interface=wlan0
dhcp-range=10.0.0.10,10.0.0.250,12h015/05/raspberry-pi-open-hotspot-for-your-company-sites-only/
no-resolv
log-queries
log-dhcp

adjust the aaa.bbb.ccc.ddd to the exclusive public IP address of your company website. Basically we are configuring Dnsmasq to answer all name resolution queries to your public IP address, and setting DCHP leases to the Hostspot clients from IP 10.0.0.10 to 10.0.0.250 valid for 12h periods.

From now on it should be possible to log in to the Hotspot, but no data flow, so let’s take care of this now. First activate the kernel IP forwarding

echo 1 > /proc/sys/net/ipv4/ip_forward

and then adjust iptables rules

iptables -F
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -p tcp -d aaa.bbb.ccc.ddd --dport 80 -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -p tcp -d aaa.bbb.ccc.ddd --dport 443 -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -p udp -d 10.0.0.1 --dport 53 -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -p udp -d 10.0.0.1 --dport 67:68 -j ACCEPT
iptables -A FORWARD -i wlan0 -j DROP 

remember to replace aaa.bbb.ccc.ddd with your the exclusive public IP address like in dnsmasq. From this point there should be a fully functional system. You can login to the Hotspot, and any http/https request will be landing in your company website. All other network traffic (except for the DHCP and name resolution will be blocked).

Now, to wrap up just make all this stuff survive reboots:

echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf

update-rc.d hostapd defaults
update-rc.d dnsmasq defaults

iptables-save > /etc/iptables.rules

and uncomment in /etc/network/interfaces the line
# pre-up iptables-restore < /etc/iptables.rules

There is just one thing left, avoid the captive portal detection and the respective sign in to network message. If you are using some kind of URL mapping/decoupling system (really hope you do) it’s pretty easy.

For Android, test for http://clients3.google.com/generate_204 request and send a 204 header and 0 bytes:

if (isset($script_parts) && $script_parts[0] == 'generate_204') {
    header('HTTP/1.1 204 No Content');
    header('Content-Length: 0');
    die();
}

For iOS lalaland test for the user agent ‘CaptiveNetworkSupport’ and send a 200 response:

if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/CaptiveNetworkSupport/i', $_SERVER['HTTP_USER_AGENT'])) {
    header("HTTP/1.1 200 OK");
    die();
}

That’s it folks, and I wonder what will be the next use for this tiny big computer?

UPDATE
After all been working well and good for a long time, maybe after a reboot a problem surfaced. Maybe a whim of the bits gods, the system was using the dnsmasq on internal lookups for all interfaces ignoring the interface directive.

So for example if one ssshed into the raspberry and tried to wget google.com one would get our company site…. not good.

Simple fix, manually edit /etc/resolv.conf, you can use Google public DNS (not censored) or your LAN Router IP (that normally uses the upstream DNS of your provider).

# Google IPv4 nameservers
nameserver 8.8.8.8
nameserver 8.8.4.4

and to not be automatic overwritten by dhcpclient updates set the immutable bit:

chattr +i /etc/resolv.conf

UPDATE 2
Noticed that the raspberry was missing /etc/network/interfaces (no file at all and I don’t recall to delete it). Maybe the problem was due to this and Maybe it’s time for a new SD card and fresh install.

Btrfs killed ZFS (on my desktops)

not-btrfsFollowing the latest post about Btrfs, until yesterday both ZFS and Btrfs were running for testing and evaluation purposes, in my primary desktop machine.

The outcome was pretty straight forward, i wiped all the ZFS stuff from the disks.  Now, my desktop is just running Btrfs (also root/boot).

Why?

Very simple reason, Btrfs is very well integrated with the OS, right from the system install, to the automatic apt-snapshots (that already saved my ass a couple of times), to the graphical tools graceful integration. On the other side, ZFS…. let’s just say that to use ZFS you actually have to add a repository and then install ZFS in the system, and just then you are ready to start and use it.

Actually both of the file systems are from Oracle, but Btrfs is GPL licensed and ZFS is CDDL license so don’t expect a kernel/OS integration anytime soon….

For my personal needs, Btrfs has all the whistles and bells, mainly sub-volumes, snapshots and compression. And it’s pretty damn fast and stable (zero problems to this day). The only thing i miss is native encryption, but probably it will roll out in an upcoming version. Sure ZFS can be more mature and feature rich, but it’s lack of integration it’s just a pita (at least for linux desktop)…

For more in depth information about Btrfs i totally recommend this presentation:

 

Linux snapshots – apt-btrfs-snapshot

Since a couple (half dozen) of years I have been using the beautiful KDE Desktop in the very well made and supported Kubuntu distribution. As technology progresses and the switch on desktop computers from fast spinning disks to solid state disks is being made, I sleep better at night with a SSD… and if even SSDs can eventually fail (as Linus Torvalds knows…), you should always backup or cloud your important data, so I was much more worried by a system messed up with some update/upgrade or my own incompetence than trough hard drive failure.

So it was time to try snapshots in Linux. As always in Unix land there’s more than one way to cook an egg. You can go with LVM + classical File System, ZFS or Btrfs (and surely many other options). I did a new Kubuntu installation with the installer defaults using Btrfs as the file system (wanted to test drive Btrfs anyway) and from here is very simple to implement snapshots.

First thing, make sure that you have the default Btrfs setup

# btrfs subvolume list /
ID 257 gen 97520 top level 5 path @
ID 258 gen 97520 top level 5 path @home

Install apt-btrfs-snapshot

# apt-get install apt-btrfs-snapshot

And check that snapshots are supported

# apt-btrfs-snapshot supported
Supported

Here actually I get an error the first time i ran it

# apt-btrfs-snapshot supported
Traceback (most recent call last):
File "/usr/bin/apt-btrfs-snapshot", line 92, in
apt_btrfs = AptBtrfsSnapshot()
File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 113, in __init__
self.fstab = Fstab(fstab)
File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 76, in __init__
entry = FstabEntry.from_line(line)
File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 49, in from_line
return FstabEntry(*args[0:6])
TypeError: __init__() missing 3 required positional arguments: 'mountpoint', 'fstype', and 'options'

this was caused by unsupported fuse syntax entries in /etc/fstab, just had to change
sshfs#user@host:/path/ /mountpoint fuse options 0 0
to
user@host:/path/ /mountpoint fuse.sshfs options 0 0

and it will work. From now on the system is pretty much autonomous, every time you apt-get upgrade a snapshot will be made for you. Take notice that each snapshot is relative to root only, this means that /home is excluded, we are taking snapshot of the system not user files and configs…

# apt-btrfs-snapshot list
Available snapshots:
@apt-snapshot-2014-12-17_10:27:24
@apt-snapshot-2014-12-18_10:33:50
@apt-snapshot-2014-12-18_19:57:02
@apt-snapshot-2014-12-19_17:17:13

or you can force a new snapshot

# apt-btrfs-snapshot snapshot

to rollback, just issue

# apt-btrfs-snapshot set-default @apt-snapshot-2014-12-18_19:57:02

and reboot, yeah… fuckin awesome!

Note, i noticed some problems in apt-btrfs-snapshot to delete and list some of own snashots. Probably because of updates in btrfs or apt-btrfs-snapshot itself (pretty common after a distribution upgrade). The delete command doesn’t works as expected and btrfs gives also error. The situation is like this:

You see the snapshot in the list:

#btrfs subvolume list /
ID 257 gen 361392 top level 5 path @
ID 258 gen 361392 top level 5 path @home
ID 505 gen 361392 top level 5 path @apt-snapshot-2015-11-12_13:01:23

But when you go to delete it, btrfs spits an awful ERROR: error accessing…

btrfs subvolume delete @apt-snapshot-2015-11-12_13:01:23
Transaction commit: none (default)
ERROR: error accessing '@apt-snapshot-2015-11-12_13:01:23'

But the solution it quite simple, just mount all the btrfs device and delete it by path:

#mount /dev/sda1 /mnt/
# ls /mnt/
drwxr-xr-x 1 root root 78 Nov 12 13:01 ./
drwxr-xr-x 1 root root 244 Ago 4 12:30 ../
drwxr-xr-x 1 root root 244 Ago 4 12:30 @/
drwxr-xr-x 1 root root 244 Ago 4 12:30 @apt-snapshot-2015-11-12_13:01:23/
drwxr-xr-x 1 root root 40 Fev 7 2015 @home/
# btrfs subvol delete /mnt/@apt-snapshot-2015-11-12_13\:01\:23/
Transaction commit: none (default)
Delete subvolume '/mnt/@apt-snapshot-2015-11-12_13:01:23'
# cd /
# umount /mnt

even so, sometimes when you try to manual delete like above you get an

ERROR: cannot delete ‘/mnt/@apt-snapshot-2015-11-12_13:01:23’: Directory not empty

in this situation just dig a bit deeper

#cd /mnt/@apt-snapshot-2015-11-12_13:01:23
# rm -rf *
rm: cannot remove 'var/lib/machines': Operation not permitted
# subvol delete /mnt/@apt-snapshot-2015-11-12_13:01:23/var/lib/machines/
# subvol delete /mnt/@apt-snapshot-2015-11-12_13:01:23/
# cd /
# umount /mnt

You can thank me later

Estoril/Cascais personal tips, favorite places and insights

So Estoril/Cascais 🙂 it’s a perfect spot for a short break or a week vacations. Both as local and an AirBnb host I have been gathering some tips and insights that I’m glad to share with you. Welcome to my personal guide.

For a general institutional view of the area and presentation video take a look at http://estoril-portugal.com done by the good people of the government….

How to arrive

EN6 - Estrada MarginalFrom Lisbon by car,  ignore the A5 motorway and set your GPS to the scenic (and toll free) Estrada Marginal – EN6, take your time, drive slowly and enjoy the beautiful coastal landscape and the feeling of leaving behind the stress of the big city and switch to a much more relaxed mindset.

From Lisbon airport by public transportation, take the subway red line from Aeroporto station, and switch at Alameda station to the green line to Cais do Sodre (it’s the terminal station). You pay 1.90€ per person, 1.40€ for the ticket and 0.50€ for the rechargeable card, so keep the card.

Viva ViagemAlso don’t put more money at the card or else you can’t use afterwards on the train, the money you put in the subway can only be spent at the subway, the money you put in the train can only be used in the train and so on. Remember that is only possible to switch operator with a zero balance…. yeah… typical Portuguese bureaucracy

At Cais do Sodré exit the subway system and go to the upstairs to the train. Charge the card with a 1.80€ zapping (it’s just a marketing word for money) and catch a train to Cascais. All trains from Cais do Sodré go to Estoril/Cascais. Relax and enjoy your trip.

Taxi, personally I would avoid the usage of taxis in Lisbon/Cascais trip. Unfortunately many of the taxi drivers are simply dishonest and some are even rude…. but if you really have to, like arriving very late or travelling with heavy bags, expect around 40€ trip rip-off. A very good alternative is to use Uber instead.

Now that you are here!

Cascais BoardwalkBoth Estoril and Cascais are very safe areas that you can walk around with no worries at all, and my first invitation to you is to go by the sea and walk the waterfront boardwalk from Estoril to Cascais, it’s a leisure walk of 2750m all the way from S.João do Estoril to Cascais, nice views for photos and lots of bars to stop for a coffee on the way. Take your time to scout for the beaches, my favorites are Tamariz and Praia da Duquesa, both have nice yellow sand and calm clean water to swim. Take notice that at peak Summer the beaches can get a bit crowded. The boardwalk ends in the heart of Cascais, a picturesque former fishing village with an aristocratic touch. If your legs can keep up, stroll around in the many pedestrian only streets.

bicas_cascaisIf you want a break from the beach and are the kind of person that enjoy to ride a bicycle, Cascais has a special treat just for you… the town provides bicycles for free (free, no cost, gratis).

  • You must take an ID card.
  • You can pick up them up in 3 spots. At Cascais train station (in front of MacDonalds), at Av. República near the Eco Turism information spot, and at the roundabout before Casa da Guia on N247 heading to Guincho.
  • You can use them everyday (except 25 December and 1 January) from 08h00 to 19h00 on Summer (01 May to 30 September) and from 09h to 17h on Winter (1 October to 30 April). You can only pick up 1h30 half hour before the station closes.
  • You must return the bicycle at the end of the day (no overnight) and in the same pick up station

Take notice, there are some 20 bicicles in each station so at peak Summer they tend to disappear pretty fast (specially from the Cascais train station pick-up spot) so arrive there early.  Also the BICAs, as they are called, are a little heavy and single shifted (but well maintained), they are perfect for a leisure ride but not at all sporty bicycles. Also they don’t come with lockers, so if you plan to leave the bicycle (to enjoy Guincho beach for example) is best to bring your own locker, if you don’t have lockers and you stay with me I can provide for free a couple of lockers to guests.

Now time to enjoy the beautiful bikepath from Cascais to Guincho, around 9Km always by the ocean

guincho_beachAs you progress you will leave the civilization behind and enter at the Cascais-Sintra natural park, eventually you will arrive at the world renowned Guincho beach, one of the best places in the world for kitesurfing or surfing. For the more adventurers there is a surf shop that can rent all the material or provide a surf (or kitesurfing) lesson/experience.

I would recommend the surf lesson. For a first timer most of the kite lesson will be spent on the sand learning all the gear and wind dynamics, on the other hand in the surf lesson most of time is spent in the water with a huge learning board and there are real chances to do a stand-up and snap that cool picture…

Most of the year Guincho beach is pretty windy and kind of uncomfortable to sunbath and swim, but in the real hot days (35ºC and up) normally is the best beach to go.

Beware! The ocean can get a bit tricky at Guincho (particularly in Winter). If you are not a seasoned swimmer and the water is choppy with big waves please don’t take any unnecessary risks.

Looking North Boca do Infernofrom Guincho you can have a glimpse of Cabo da Roca, the western point of continental Europe, it’s also a hot spot to go. but would not advise with the BICAs bicycle, it’s doable… but you will face some sharp climbing with an inadequate bicycle.

So time to come back, please stop at Boca do Inferno (the Hell’s Mouth) viewpoint. There you can have some photos and there are many places for a coffee break or ice-cream.

Casino EstorilThis is a pretty obvious tip, but since you are here, please don’t skip a visit to Casino do Estoril. During World War II, it was reputed to be a gathering spot for espionage agents, dispossessed royals, and wartime adventurers. It was the inspiration for Ian Fleming’s 007 novel Casino Royale. Also, it’s the biggest casino of Europe and besides all the expected gambling, there is always entertainment with shows and live music (some events are free). And why not to try your luck (with just a bit of money)? Who knows you can get rich during the holidays 🙂

There are many places inside the Casino where you can eat, restaurants, buffets and lounges. Some years ago i went to a show with a dinner and it was good but it wasn’t good enough to go to my restaurants list (a bit down), but some say the Chinese food restaurant Mandarin is the best and most authentic in Portugal.

cabo_da_rocaAs referenced before i also invite you also to go to Cabo da Roca. This landmark is the westernmost extent of continental Europe, has a beautiful view of the ocean and Sintra mountains, and very picturesque old lighthouse. You can get there by bus, line 403, from Cascais station.

If you like palaces and gardens (who doesn’t?) is also a very good idea to visit Sintra village – lots of material for a full post – on the same day of Cabo da Roca.

Unfortunatetly at this writing time the bus company website is only in portuguese, but I can help you with timetables and ticket prices.

But in my opinion the perfect way to go from Estoril/Cascais to Cabo da Roca (and Sintra) in the Summer is to rent a scooter, and to enjoy the fresh mountain air and the winding, but calm road. You can easily rent one in Cascais around 30€/day. I also strongly suggest that you install in your smartphone, MEO Drive a very good and FREE GPS app (available for Android and iOS) with detailed off-line (no Internet connection needed) maps of Portugal.

Check out the bar tips bellow and mark on the GPS the amazing Bar Moinho D. Quixote, located 1km before Cabo da Roca.

peninha roadIf you like stunning views, go up to Peninha, in a clear day you can enjoy a breathtaking view, all the way North to Peniche and all the way South to Serra da Arrábida, more than 100kms panorama…. for me simply the best view in the region. You can get there from a dirt road on N247 on the way to Cabo da Roca after Malveira da Serra. Or on narrow but paved road turning left on N9-1 also after leaving Malveira da Serra (this paved road takes you deep inside a pristine forest before climbing up do Peninha).

These are my suggestions for the days off the beach in Cascais/Estoril area, but of course i would very strongly suggest also a day trip to Lisbon, but that deserves a full post on its own.

Where to eat in Estoril/Cascais?

These are my favorite places, based on quality/price, kind of food, location and service around the area. Keep in mind that I haven’t tried all the restaurants, so there should be also other nice options not listed here. Also the order of listing is of no importance of preference.

  • dom_pregoDom Prego
    This is a local favorite, it’s got a very good (and very very cheap) steak with chips. You must ask for “Prego no prato” and choose with or without the egg. For a complete Portuguese experience choose draft beer (the litlle 20cc cup – but always cold and bubbly) to go with the steak. All the other stuff that I tried here didn’t even come close to the steak, so again ask for “Prego no prato” and you can thank me later 🙂
    ps – on top you will get also the free sea view from most of the tables
  • esplanada-santa-martaEsplanada de Santa Marta
    This one is dedicated to all the fish lovers. Located after the Cascais marina on the way to Guincho, you will see just before the old roman bridge some inconspicuous stairs that lead to an esplanade. This place my best advice for you is to stick to the grilled fresh fish. The prices are very reasonable and it has a beautiful sea view and Santa Marta lighthouse, best at sunset.
  • a_tascaA Tasca
    Deep inside Cascais, you will find this gem of typical Portuguese food. It serves daily dishes with seasonal ingredients. So my best advice for you is to ask Lita (the owner) for the daily special. This place is simple, honest, cousy, kind of old style restaurant that everybody enjoys. The prices are a bit higher than the previous two suggestions, but still retains a great price/quality ratio. My personal tip, go there when you are really on empty stomach 🙂
  • CapricciosaCapricciosa
    For all the Italian food lovers, this place offers good pizza and pasta at reasonable prices. It has a very good sea view and a lovely open balcony ideal for Summer dinners. Sometimes, not so good service and sometimes a little bit overcrowded for my taste.

Bars and discos in Estoril/Cascais

  • O Moinho D QuixoteBar Moinho D. Quixote
    On the way to Cabo da Roca, just 150m after the turn off the main road to Cabo da Roca/Azoia sign. It’s difficult to spot so here are the GPS coordinates
    Lat: 38.770783389980174
    Lon: -9.47728380560875
    It’s a lovely spot in Summer with a stuning outside view over Guincho at the outside tables, and very cosy in the Winter with the fireplace that warms up the several typical wood decorated rooms.
  • Quiosque Jardim dos PassarinhosQuiosque do Jardim dos Passarinhos
    This is a local neighborhood coffee terrace kiosk, good for morning coffee and newspaper on the way to the beach. It’s located on Carlos Anjos garden, a small but charming public garden at the end of Avenida Saboia in Monte Estoril. There is a cage with exotic birds thus the name Jardim dos Passarinhos (The Birds Garden).
  • Attic CascaisAttic
    This bar is a classic in Cascais night scene, it’s open everyday until 4am. At the weekends sometimes it has DJs and live music playing. My personal tip, ask for the 10 bottles of beer in the ice bucket for 10 euros (yes… that’s 1 euro for each beer).
  • 2001 rock club2001 Rock Club
    For all the rock and heavy metal lovers, you should go to the 2001 Rock Club – nicknamed the Cathedral of Rock – this place is open since 1973, and thank God little or nothing has changed since then… it’s located under the Autódromo do Estoril stands 🙂 unfortunately the best way is to get there is by taxi. Expect pretty reasonable prices and loud rock until morning.
  • Bauhaus EstorilBauhaus
    This is a pretty normal discotheque that usually i wouldn’t put in these suggestions. But here comes the insider tip, every first Friday of each month this place trows a rock party (expect lot of 80’s and 90’s) that everybody loves. It’s always fully packed and alive. So, if you are staying nearby at one of these special Fridays you should go. It’s located in front of Monte Estoril train station, at the other side of the road. High prices in the drinks are to be expected.
  • jezebelTamariz/Jézebel
    The more fashionable clubs in Estoril/Cascais. They are siblings, as Tamariz club (located in Tamariz beach) is open during the Summer then it closes and the staff moves to Jézebel (in Casino do Estoril) during the Winter. Both are high life clubs with lots of pretty people to see and be seen. Commercial dance hits of the season and some 80s tunes are the common airplay music. Personally I enjoy more Tamariz with lots of outside space, but on weekends you can get some pretty amusing nights on both of them (thats why they are on this guide…). Be prepared to spend some money as they are quite expensive.

Warning, tourist trap! At Cascais center, just near the Cascais bay and town-hall you will find a square called Largo Camões, packed with restaurants, bars and coffee shops. Most of the places during daytime are restaurants, then in the night transform in a bad mix of bars/clubs playing loud music to outside doing the best to get people inside where half dozen of inebriated people drink and dance with the big TVs on sport channels as background…. consider yourself warned.

And that’s all folks, I hope you really have a wonderful time here, relax, enjoy the sun, the sand, the good wine, the good food and the people.

And if you have any tips please use the comments box bellow.