LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2001, 04:44 PM   #1
ctenuta
LQ Newbie
 
Registered: Apr 2001
Posts: 2

Rep: Reputation: 0
Thumbs down


IŽd like to do this in my network:

Internet
|
Gateway Linux(2 lan cards + IPCHAINS)
|
IIS(Internal IP)

Redirect all www access from linux to IIS but this command donŽt work for me
-> ipmasqadm portfw -a -P tcp -L IPLINUX 80 -R IPIIS 80

What should I do?
 
Old 04-12-2001, 06:03 AM   #2
smurf
Member
 
Registered: Apr 2001
Posts: 113

Rep: Reputation: 15
I use this script to route between NIC's

I use 2 NIC's

Eth0 = 192.168.1.1 (Local network)
Eth1 = Pump (Cable Modem)

I masq all Internet addresses from internal net through eth0 to eth1 to the web.

This is the script i use (its a very simple firewall)

/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_quake 26000, 27000, 27910, 27960
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_always_defrag
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
echo "1" > /proc/sys/net/ipv4/ip_masq_udp_dloose
/sbin/ipchains -M -S 7200 10 160
/sbin/ipchains -A input -j ACCEPT -i eth1 -s 0/0 67 -d 0/0 68 -p udp
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -i eth1 -s 192.168.1.0/24 -j MASQ

Just run this script at startup.

Make sure u have all the modules installed.
Redhat and a few others come pre-configured.

Hope this helps
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache: http redirect for any request going to www.foo.com/* psychobyte Linux - Software 1 04-11-2005 05:57 PM
Just bought www.helpwithlinux.net and www.helpwithwindows.com Whitehat General 15 05-08-2003 12:31 PM
IIS or Apache? mib Linux - Newbie 13 03-16-2003 07:16 PM
Ipchains REDIRECT or any way thep Linux - Security 1 08-19-2002 01:28 PM
IPCHAINS + IIS ctenuta Linux - Networking 0 04-11-2001 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration