?
Solved

CentOS 5.5 Setup as a Gateway Router for PC's attached to it...

Posted on 2011-02-24
10
Medium Priority
?
943 Views
Last Modified: 2012-05-11
Say, What are teh settings required. N/W is as follows:
Local lan on eth0: 192.168.10.1/24
eth0:1: 192.168.1.1/24 Virtual port for ppp0 connection.
ppp0 uses eth0:1 and connects to the internet through adsl modem connected to same switch as eth0
PC's on local LAN need internet connection and I need port forwarding to them.
0
Comment
Question by:shaunwingin
[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
  • 3
  • 3
  • 3
  • +1
10 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 1500 total points
ID: 34978546
This should work:
http://www.linuxtopia.org/online_books/centos_linux_guides/centos_linux_security_guide/s1-firewall-ipt-fwd.html
i.e CentOS should be default router to all clients preferably via DHCP, and their NAT-ED connections should go via ppp interface.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 34978692
Hi,

This would never happen. ppp0 is the name of the interface and can not be used as an alias to ppp0.

So your interfaces should be ppp0 and eth0.

if you want masquarading between thenm you can do it with iptables. But please reddefine the circumstance and support them with outputs from your /etc/sysconfig/iptables and and your ipconfig outputs.

Cheers,
K.
0
 

Author Comment

by:shaunwingin
ID: 34978934
eth0:1 is a virtual interface and ppp0 should be able to use it....
0
WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 34979068
> eth0:1 is a virtual interface and ppp0 should be able to use it....

You are wrong it is not a virtual interface but rather an alias interface to the eth0 so it is strcitly attached to the eth0 so no ppp0 traffic will flow through it.
0
 

Author Comment

by:shaunwingin
ID: 34979192
Ok Tx. What then if add a 2nd interface called eth1 and attach the pppo device to this and have the traffic directed through it?
This is a planned setup and don't have iptables to send you.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 34979221
Ok but this will never happen this way. eth0 is the ethernet interface and ppp0 is your modem interface. Why are you trying to change it to eth? They are both legal interfaces. You can easily address your ppp0 interface through iptables so in fact using it wont cause you any trouble when defining iptables rules.
0
 
LVL 19

Expert Comment

by:bevhost
ID: 34983747
If you want IPv6
/etc/sysconfig/network
NETWORKING_IPV6=yes 
IPV6_DEFAULTDEV="tun6to4" 
IPV6FORWARDING=yes

/etc/sysconfig/network-scripts/ifcfg-ppp0 
IPV6INIT=yes
IPV6TO4INIT=yes 
IPV6TO4_ROUTING="eth0-:1::0/64"
IPV6_CONTROL_RADVD=yes

Open in new window

0
 
LVL 19

Expert Comment

by:bevhost
ID: 34983755
And you might need to
yum install radvd

Open in new window

0
 
LVL 19

Expert Comment

by:bevhost
ID: 34983772
0
 

Author Closing Comment

by:shaunwingin
ID: 35117465
Haven't managed to test.
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

762 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