dlc2000
01-16-2003, 06:26 PM
hi all
someone can help me to configure a Nat with a Alcatel Speed Touch Pro.
I need to redirect port 21 and 80 on my server office
thx
bobcares
01-17-2003, 12:56 AM
Here's one very simple way for doing what you want. Open file -
/etc/sysctl.conf
This line should
net.ipv4.ip_forward = 1
Now just run -
#!/bin/bash
# Load the ipchains kernel module
/sbin/modprobe ipchains
insmod ipchains
# MASQ the full 192.168.1.0/24 network
#
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ
# Masq only 192.168.1.51
# /sbin/ipchains -A forward -s 192.168.1.51 -j MASQ
# List rules
/sbin/ipchains -L -n
This could do the trick with minimal work.
The other method is as you mentioned NATing where you need to have natd etc.
I hope this helps.
Have a nice day
Regards
Amar
pyoor
01-18-2003, 10:02 PM
You can grab fw.sh off of www.sekure.us. It has a section (which is commented out) which shows how to route specific ports to speicific IP's. Its pretty self explanatory if you look at the examples given. Just ./fw.sh after you have set it up and voila...