Mailinglist Archive: opensuse-security (670 mails)
| < Previous | Next > |
Re: [suse-security] port-based ip-forwarding
- From: <dog@xxxxxxxxx>
- Date: Thu, 15 Nov 2001 08:24:22 -0600 (CST)
- Message-id: <Pine.LNX.4.33.0111150820370.24330-100000@xxxxxxxxxxxxx>
yes. iptables can do it although i dont know the syntax or you can use 2.2
series kernel and ip_masq_portfw module with syntax
# Load Port Forwarding Module
/sbin/modprobe ip_masq_portfw
# Setup Port Forwarding Rules
# flush existing rules
ipmasqadm portfw -f
# Forward remote calls to port 80 to local port 80
ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.xxx 80 -R 192.168.1.50 80
there is also a program called rinetd that will do it for you.
series kernel and ip_masq_portfw module with syntax
# Load Port Forwarding Module
/sbin/modprobe ip_masq_portfw
# Setup Port Forwarding Rules
# flush existing rules
ipmasqadm portfw -f
# Forward remote calls to port 80 to local port 80
ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.xxx 80 -R 192.168.1.50 80
there is also a program called rinetd that will do it for you.
| < Previous | Next > |