UFW block outgoing traffic?

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

UFW block outgoing traffic?

Postby rjn239 » Sat Apr 05, 2014 4:35 pm

Hey all,

I was wondering if somebody could shed some light into UFW for me. I have setup my RPi as a DHCP/DNS server for the LAN, and installed a USB to Ethernet dongle so I can place the RPi between my LAN router and WAN modem (so all traffic must go through it)
I want to setup UFW to only allow internet browsing, so I have setup my UFW as shown:

$this->bbcode_second_pass_code('', '[root@piwall ~]# ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), deny (outgoing)
New profiles: skip

To Action From
-- ------ ----
67 ALLOW IN Anywhere
68 ALLOW IN Anywhere
22 ALLOW IN 192.168.1.0/24
67 ALLOW IN Anywhere (v6)
68 ALLOW IN Anywhere (v6)

80 ALLOW OUT 192.168.1.0/24
443 ALLOW OUT 192.168.1.0/24
8080 ALLOW OUT 192.168.1.0/24
53 ALLOW OUT 192.168.1.0/24
67 ALLOW OUT Anywhere
67 ALLOW OUT Anywhere (v6)

[root@piwall ~]#
')

Because I am using two Ethernet adapters I have setup all the necessary masquerading, and if I disable UFW the internet works fine (obviously unfiltered so any port is accessible) my default UFW actions are set to deny both outgoing and incoming, and then blow holes in the firewall as shown above. Can anybody offer any idea as to why after adding these rules I can't access any internet page? I am using Arch.

Thanks in advanced.
Ryan.
rjn239
 
Posts: 1
Joined: Tue Jan 21, 2014 5:24 pm

Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 27 guests