Solved

Need help to configure a gateway server in linux

Posted on 2009-07-02
1
341 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
1 Comment
 
LVL 5

Accepted Solution

by:
AngelGabriel earned 250 total points
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 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

12 Experts available now in Live!

Get 1:1 Help Now