How do I set ufw to allow internal network connections?

24,827

It looks like you may have "default deny outgoing" turned on. Can you do a "sudo ufw status verbose" for us please? I'm assuming that you're server IP address is not 91.189.94.156. Are you using your server as a gateway? If so, check out this link, which shows hot to set it up (or close to what you need).

Share:
24,827

Related videos on Youtube

Hew
Author by

Hew

Updated on September 17, 2022

Comments

  • Hew
    Hew over 1 year

    I'm configuring an Ubuntu Server for my home network to handle NAT and firewall. I've configured dnsmasq and verified that it's working correctly. I want all connections from my internal network to be allowed. However, once I enable ufw, the connections are blocked.

    I have tried:

    sudo ufw allow in on eth1
    

    and:

    sudo ufw allow from 192.168.0.0/24
    

    but any solution I try results in messages such as these in syslog:

    [UFW BLOCK] IN=eth1 OUT=eth0 SRC=192.168.0.10 DST=91.189.94.156 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=16240 DF PROTO=TCP SPT=37444 DPT=80 WINDOW=5840 RES=0x00 SYN URGP=0
    

    Am I understanding the rules incorrectly, or is the problem elsewhere?

  • Hew
    Hew over 13 years
    Thanks for that link, I needed to change the line in /etc/default/ufw to DEFAULT_FORWARD_POLICY="ACCEPT".