Solved

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

Posted on 2011-02-24
10
936 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 500 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
Technology Partners: 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!

 
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

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

Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 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