- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Port Forward
Operating System - Linux
1753937
Members
9385
Online
108811
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
тАО10-09-2007 07:53 PM
тАО10-09-2007 07:53 PM
Port Forward
Hi all,
i have a problem with port forward.
I' ve three linux box:
Gateway, Proxy and Server.
My network is 172.20.0.0
Gateway has ip 172.20.0.1 and 192.168.0.1
Proxy 192.168.0.2
Server 192.168.0.3
On Gateway there is
$IPTABLES -t nat -A PREROUTING -i $ETH_LAN -p udp -s 172.20.0.0/16 --dport 161 -j DNAT --to-destination 192.168.0.2
On Proxy
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 192.168.0.2 --dport 161 -j DNAT --to-destination 192.168.0.3
Default Gw of Proxy and Server is Gateway
From my client on 172.20.0.0 LAN i can't query snmp thee Server, why?
Thanks
i have a problem with port forward.
I' ve three linux box:
Gateway, Proxy and Server.
My network is 172.20.0.0
Gateway has ip 172.20.0.1 and 192.168.0.1
Proxy 192.168.0.2
Server 192.168.0.3
On Gateway there is
$IPTABLES -t nat -A PREROUTING -i $ETH_LAN -p udp -s 172.20.0.0/16 --dport 161 -j DNAT --to-destination 192.168.0.2
On Proxy
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 192.168.0.2 --dport 161 -j DNAT --to-destination 192.168.0.3
Default Gw of Proxy and Server is Gateway
From my client on 172.20.0.0 LAN i can't query snmp thee Server, why?
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 11:00 PM
тАО10-09-2007 11:00 PM
Re: Port Forward
You have your SNAT rules for the packets going the other direction?
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 11:25 PM
тАО10-09-2007 11:25 PM
Re: Port Forward
Shalom,
Need to see the entier iptables configuration. Not your block lists but configuration.
I hate iptables and use http://www.fs-security.com Firestarter wherever possible.
For diagnosis, turn on logging.
SEP
Need to see the entier iptables configuration. Not your block lists but configuration.
I hate iptables and use http://www.fs-security.com Firestarter wherever possible.
For diagnosis, turn on logging.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 11:31 PM
тАО10-09-2007 11:31 PM
Re: Port Forward
Why you set "-p udp" on gateway and "-p tcp" on Proxy? Put udp if you want to use port 161.
See also
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables
See also
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables
So computers don't think yet. At least not chess computers. - Seymour Cray
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