Solved

Need help to configure a gateway server in linux

Posted on 2009-07-02
1
395 Views
Last Modified: 2013-12-16
I am using Fedora core 8 as a gateway server. In my gateway server I have configured DHCP, DNS, Squid Proxy & it will act as router (IPForwarding). I am connecting internet using Linksys broadband router in that router NAT enabled. If any client connects to my gateway server they can able to access the internet directly because in router NAT enabled and in getaway server IP-Forwarding enabled.


I enable IP-Forwarding in gateway server for VPN Routing.

Problem:

From any client pc if we ping google.com or any website I am getting icmp reply by default, so user not using the proxy server they accessing the internet directly. This problem occurs due to enable NAT in router and IPforwarding in gateway server.


Gateway server NIC details:
eth0: 192.168.0.0/24   (For local connection)
eth1: 192.168.20.0/24 (For broadband connection)

This is my requirement:

1)      I want to block the user to access the internet directly, by using firewall. (without disable the NAT and IP-Forwarding)
2)      I want to allow one particular ip to access the internet directly via gateway server using NAT.
3)      Allow one particular website (eg. MSDN site) to all via NAT in gateway server.


0
Comment
Question by:rajasekarramasamy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
AngelGabriel earned 250 total points
ID: 24768591
You should look into a distribution called Endian Firewall - It will help you to achieve what you want, without having to learn to write iptables rules properly
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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