- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- internet pbm
Operating System - Linux
1755263
Members
6251
Online
108831
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 06:05 PM
тАО03-27-2007 06:05 PM
internet pbm
hi all,
Im having two nic in my linux box .
i have connected a adsl modem to eth1 of my server.the ip for eth1 is 192.168.1.2, where the adsl modem has 192.168.1.1.My eth0 connects to my local network with ip 192.168.0.1.how do i allow my local network clients with 192.168.0.0 ips to access the internet
Im having two nic in my linux box .
i have connected a adsl modem to eth1 of my server.the ip for eth1 is 192.168.1.2, where the adsl modem has 192.168.1.1.My eth0 connects to my local network with ip 192.168.0.1.how do i allow my local network clients with 192.168.0.0 ips to access the internet
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 07:12 PM
тАО03-27-2007 07:12 PM
Re: internet pbm
First, you want to enable 'ip forwarding'.
This can be done in a few ways depending on the distribution you have, but it all comes down to:
echo 1 > /proc/sys/net/ipv4/ip_forward
Use 'sysctl' (and '/etc/sysctl.conf') as the preferred method of routinely setting this.
Next is the firewall, in particular the 'FORWARD' section. This needs to have some decent rules, or have an ACCEPT policy. If you're using the firewall on your ADSL router, this is sort-of ok. If not, then set up the firewall on your Linux box properly.
Of course, you'll need to ensure that your linux box has a default route set through 192.168.1.1/eth1, so that traffic knows where to go after it's been allowed to forward.
Then all you need is to make sure you have a valid, working DNS server, and you're all good.
This can be done in a few ways depending on the distribution you have, but it all comes down to:
echo 1 > /proc/sys/net/ipv4/ip_forward
Use 'sysctl' (and '/etc/sysctl.conf') as the preferred method of routinely setting this.
Next is the firewall, in particular the 'FORWARD' section. This needs to have some decent rules, or have an ACCEPT policy. If you're using the firewall on your ADSL router, this is sort-of ok. If not, then set up the firewall on your Linux box properly.
Of course, you'll need to ensure that your linux box has a default route set through 192.168.1.1/eth1, so that traffic knows where to go after it's been allowed to forward.
Then all you need is to make sure you have a valid, working DNS server, and you're all good.
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 11:15 PM
тАО03-27-2007 11:15 PM
Re: internet pbm
# echo 1 > /proc/sys/net/ipv4/ip_forward
# echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
# iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
# service iptables save
# echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
# iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
# service iptables save
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP