Discussion Locked

configuring IPFW in FreeBSD

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have problems in setting up the firewall in our
gateway.We 8 machines connected in our LAN and these clients connect to the internet through this gateway running ADSL connection.
But whenever I run my ruleset of IPFW,LAN is disconnected to the internet.My gateway is running Freebsd 4.5 and the clients are win 98 machine.
I can ping from the client to the gateway and vice versa but browsing or sending e-mail is not possible from the client.

Thanks

7 replies

by alexey386

Write rules:
# Allow SMTP
${fwcmd} add pass tcp from any to any 25
${fwcmd} add pass tcp from any 25 to any

# Allow POP3
${fwcmd} add pass tcp from any to any 110
${fwcmd} add pass tcp from any 110 to any

# Allow WWW
${fwcmd} add pass tcp from any to any 80
${fwcmd} add pass tcp from any 80 to any

This discussion is closed to new replies.