• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 957
  • Last Modified:

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

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
shaunwingin
Asked:
shaunwingin
  • 3
  • 3
  • 3
  • +1
1 Solution
 
gheistCommented:
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
 
Kerem ERSOYPresidentCommented:
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
 
shaunwinginAuthor Commented:
eth0:1 is a virtual interface and ppp0 should be able to use it....
0
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
Kerem ERSOYPresidentCommented:
> 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
 
shaunwinginAuthor Commented:
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
 
Kerem ERSOYPresidentCommented:
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
 
bevhostCommented:
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
 
bevhostCommented:
And you might need to
yum install radvd

Open in new window

0
 
bevhostCommented:
0
 
shaunwinginAuthor Commented:
Haven't managed to test.
0

Featured Post

Industry Leaders: 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!

  • 3
  • 3
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now