- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- iptables: forwarding port 9100 into a jetdirect pr...
Operating System - Linux
1819803
Members
2865
Online
109607
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
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-21-2004 11:39 PM
тАО03-21-2004 11:39 PM
iptables: forwarding port 9100 into a jetdirect printer on the lan
I am trying to let a company print out on the our jetdirect printer on our lan.
I am using Arno's iptables script to ease the administration of iptables.
I have set up tcp/udp forwarding for port 9100-9120. But connections still time out. :(
If i telnet into the printer from the linux-router-box, it works fine. :/
Any help would be greatly appreciated! :D
I am using Arno's iptables script to ease the administration of iptables.
I have set up tcp/udp forwarding for port 9100-9120. But connections still time out. :(
If i telnet into the printer from the linux-router-box, it works fine. :/
Any help would be greatly appreciated! :D
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2004 11:56 PM
тАО03-21-2004 11:56 PM
Re: iptables: forwarding port 9100 into a jetdirect printer on the lan
are you sure that IP forwarding on the linux-router-box is enabled?
the file /proc/sys/net/ipv4/ip_forward should be 1:
# cat /proc/sys/net/ipv4/ip_forward
1
if it isn't so, run this command:
# echo "1" >/proc/sys/net/ipv4/ip_forward
hth,
Claudio
the file /proc/sys/net/ipv4/ip_forward should be 1:
# cat /proc/sys/net/ipv4/ip_forward
1
if it isn't so, run this command:
# echo "1" >/proc/sys/net/ipv4/ip_forward
hth,
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2004 01:30 AM
тАО03-22-2004 01:30 AM
Re: iptables: forwarding port 9100 into a jetdirect printer on the lan
cat /proc/sys/net/ipv4/ip_forward returns 1.
This is specified in the Arno iptable script.
But, thanks for the reply, anyway. (gave you a point)
This is specified in the Arno iptable script.
But, thanks for the reply, anyway. (gave you a point)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2004 05:05 PM
тАО03-22-2004 05:05 PM
Re: iptables: forwarding port 9100 into a jetdirect printer on the lan
No idea what that script does, but
- AFAIK, jetdirect only uses TCP, port 9100. at least this is what I've been using in the last 3.5 years
- make sure you do not block tcp port 9100 in any table (mangle/filter/nat).
Also, in the script you should include something similar to:
iptables -A PREROUTING -t nat -p tcp -d $EXTERNAL_IP -i $EXTERNAL_INTERFACE --dport 9100 -j SNAT --to $HP_PRINTER_IP
iptables -A FORWARD -d $HP_PRINTER -s $YOUR_PARTNER_IP -j ACCEPT
You could use tcpdump/ethereal and/or some iptables -j LOG rules to debug the connection. If your kernel + iptables are patched using patch-o-matic, you could also use some -j TRACE rules.
One last point: on most distributions, /proc/sys/net/ipv4/ip_forward can be set to "1" only once, during startup, using /etc/sysctl.conf or rc.local. No need to include this setting in a firewall script which might be run several times after the machine boots.
- AFAIK, jetdirect only uses TCP, port 9100. at least this is what I've been using in the last 3.5 years
- make sure you do not block tcp port 9100 in any table (mangle/filter/nat).
Also, in the script you should include something similar to:
iptables -A PREROUTING -t nat -p tcp -d $EXTERNAL_IP -i $EXTERNAL_INTERFACE --dport 9100 -j SNAT --to $HP_PRINTER_IP
iptables -A FORWARD -d $HP_PRINTER -s $YOUR_PARTNER_IP -j ACCEPT
You could use tcpdump/ethereal and/or some iptables -j LOG rules to debug the connection. If your kernel + iptables are patched using patch-o-matic, you could also use some -j TRACE rules.
One last point: on most distributions, /proc/sys/net/ipv4/ip_forward can be set to "1" only once, during startup, using /etc/sysctl.conf or rc.local. No need to include this setting in a firewall script which might be run several times after the machine boots.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP