Solved

masquerading question

Posted on 1997-11-04
1
275 Views
Last Modified: 2012-05-04
I have set up a LINUX box as a firewall with IP-masquerading. I think I got it all set up correctly after a multitude of trials, but I still have a question. I have a PPP connection to the ISP and an ethernet internal network.

The masquerading HOWTO lists specific commands for setting up the masquerading:

ipfwadm -F -p deny
ipfwadm -F -a m -S XXX.XXX.XXX.0/24 -D 0.0.0.0/0

with an optional -V YYY.YYY.YYY.YYY or -W ifname as options.

When I test it without the options, everything works fine and I can access the internet and newsgroups from any PC on the internal net.

When I specify the -V option with the internal IP address of the LINUX box, I cannot get out. The same applies, when I use the -W option with eth0 as the ifname. If I specify -W ppp0, then everything is fine again.

Is there a security hole, or is this OK?

Again, the ppp0 is the external connection of the firewall, the eth0 is the internal connection.

Michael Bode
mb@soft-imaging.com
0
Comment
Question by:mbode
1 Comment
 
LVL 4

Accepted Solution

by:
unicorntech earned 60 total points
ID: 1586792
This looks to be ok by me - I don't feel there is a security hole here. I would also set up tcpd and the /etc/hosts.allow and the /etc/hosts.deny files ( do a man on tcpd) to deny access to services as well,

Regards,

Jason
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question