HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Natting on Linux box
Operating System - Linux
1830250
Members
2685
Online
110000
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
Forums
Discussions
Discussions
Discussions
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
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
12-11-2005 10:37 PM
12-11-2005 10:37 PM
Natting on Linux box
Hi,
Requirement :
url on the IP address 192.168.152.113 should be able to access using 172.26.12.112 IP address by the users from 192.168.31.x series network.
Plan : Setup of Linux server which will Nat IP address of 192.168.152.113 to 172.26.12.112
Can some body tell me what is the basic requirement for the same.
Regards
Walter Crasto
Requirement :
url on the IP address 192.168.152.113 should be able to access using 172.26.12.112 IP address by the users from 192.168.31.x series network.
Plan : Setup of Linux server which will Nat IP address of 192.168.152.113 to 172.26.12.112
Can some body tell me what is the basic requirement for the same.
Regards
Walter Crasto
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 03:12 AM
12-12-2005 03:12 AM
Re: Natting on Linux box
I would install shorewall and setup
a DNAT rule for this.
If you want to build your own rules check
the documentation at the Linux Documentation
Project http://tldp.org. There is a
document on configuring NAT.
a DNAT rule for this.
If you want to build your own rules check
the documentation at the Linux Documentation
Project http://tldp.org. There is a
document on configuring NAT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 04:06 AM
12-12-2005 04:06 AM
Re: Natting on Linux box
you can use iptables for this:
first:
echo 1 > /proc/sys/net/ipv4/ip_forward
then:
iptables -t nat -A PREROUTING -s 192.168.31.0/24 -j DNAT --to-destination 192.168.152.113
and:
iptables -t nat -A POSTROUTING -j MASQUERADE
that's it
first:
echo 1 > /proc/sys/net/ipv4/ip_forward
then:
iptables -t nat -A PREROUTING -s 192.168.31.0/24 -j DNAT --to-destination 192.168.152.113
and:
iptables -t nat -A POSTROUTING -j MASQUERADE
that's it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2005 02:40 AM
12-13-2005 02:40 AM
Re: Natting on Linux box
consider using a specialized firewall distribution, like monowall or smoothwall. these are prepackaged with everything needed, are simple to configure and maintain, and include firewalling featrues should you need them.
There have been Innumerable people who have helped me. Of course, I've managed to piss most of them off.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP