Solved

masquerading question

Posted on 1997-11-04
1
268 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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OpenVPN running on Ubuntu 14.4 x64 5 92
Postfix DNS lookups setup 5 41
for ssh without password, are both ways correct 16 67
is my large folder zipped corrupted 4 51
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now