LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-30-2006, 05:15 PM   #1
amao
Member
 
Registered: May 2006
Location: egypt
Distribution: suse 10.2
Posts: 34

Rep: Reputation: 15
router


how can I use mandriva 2006 as a router ?
 
Old 06-30-2006, 08:56 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
We need more details than this to answer your question.

Will the box be a dedicated router - if so the Mandriva is overkill. Look into something such as Smoothwall, which is designed specifically for this purpose.

If you want to use Mandriva, then you just need to set up port forwarding with IPTABLES. Google for how to do this.

--Ian
 
Old 06-30-2006, 09:20 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,656
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
I've used Mandy as a router/firewalled-gateway/proxy-server.

But the tutorial is based on mandrake 9.x and there is no support for it.
It was produced by a magazine in Australia called Atomic MPC. www.atomicmpc.com
Just lately they are running an ubunto(?) tute on a similar thing.

Basically, I had three network cards and an onboard network interface in the one box.

The onboard was connected to the cable-modem. tHE PROXY-SERVER SAVED ME HEAPS OF BANDWIDTH, (Oops,Caps)

From going to the same pages all the time, most of the data was accessed from the proxy and then updated from the net(www)

It was a great bandwidth saver, I had an old Mac, my laptop and my main PC all connected to it and then

I was able to share files and resources from behind a firewalled server.

I still have a copy of the tute if you'd like a copy. It is copywritten, so I cant post it here.

And remember it has no support.

If you want a copy let me know and I can email it to you. Zipped it is just over a megabyte

Uber Linux Project.zip
size on disk: 1.15 MB (1,212,416 bytes)
Created: Today, 1 July 2006, 12:17:34 PM
 
Old 07-01-2006, 05:45 AM   #4
amao
Member
 
Registered: May 2006
Location: egypt
Distribution: suse 10.2
Posts: 34

Original Poster
Rep: Reputation: 15
plz post it here
 
Old 07-01-2006, 06:59 AM   #5
VideoLinux
LQ Newbie
 
Registered: Feb 2006
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref

I still have a copy of the tute if you'd like a copy. It is copywritten, so I cant post it here.
Read above
 
Old 07-01-2006, 07:57 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,656
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Smile Here is a sample.....

It's over 60 pages,

There are also some scripts available.

Here's a tib-bit.........

#!/bin/sh
#
# Atomic IPTables firewall script v1.2
#
# Simple but effective firewall written for
# the Atomic Uber Linux box guide,
# Issue 21, Oct 2002
#
# Updated May 2003 for bandwidth shaping
#
# Ashton Mills
# amills@iinet.com.au

# Environment variables, change these values accordingly

EXT_IF=eth0
INT_IF=eth1
INT_NET=192.168.1.0/24

ANY=0.0.0.0/0

IPTABLES=/sbin/iptables
MODPROBE=/sbin/modprobe

#
## You shouldn't need to touch anything below here
#

# Load appropriate iptables modules, others will be loaded dynamically on demand

$MODPROBE ip_tables
$MODPROBE iptable_filter
$MODPROBE ip_nat_ftp
$MODPROBE ip_conntrack
$MODPROBE ip_conntrack_ftp

# Set proc values for TCP/IP. In order:
#
# Disable IP spoofing attacks
# Ignore broadcast pings
# Block source routing
# Kill redirects
# Set acceptable local port range
# Allow dynamic IP addresses
# Enable forwarding (gateway)

echo "2" > /proc/sys/net/ipv4/conf/all/rp_filter
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo "0" > /proc/sys/net/ipv4/conf/all/accept_source_route
echo "0" > /proc/sys/net/ipv4/conf/all/accept_redirects
echo "32768 61000" > /proc/sys/net/ipv4/ip_local_port_range
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
echo "1" > /proc/sys/net/ipv4/ip_forward

# Flush everything

$IPTABLES -F INPUT
$IPTABLES -F OUTPUT
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
$IPTABLES -t mangle -F

#
## --- DEFAULT POLICY --- ##
#

# Drop everything on INPUT and FORWARD chains, accept OUTPUT........................."




(this is about 10% of the firewall script, there are instructions to use/follow with this.)


Give me an email address to send it to and you can print it off.

It is a total installation, instructional tutorial.

Good luck.

Last edited by GlennsPref; 07-02-2006 at 06:10 AM. Reason: Adding clarity
 
Old 07-02-2006, 06:16 PM   #7
AnRkey
Member
 
Registered: Dec 2004
Location: UK
Distribution: Ubuntu, Fedora and not for long, M$ SuSE
Posts: 59

Rep: Reputation: 15
What will this box do...

What do you intend to use this box for? Smoothwall rocks as a router! My favourate is still IPCop though. I use IPCop in many large networks and I never have problems. IPCop is based on Smoothwall so either is cool.

Give em a try.
 
  


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
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
linux as router/gateway/firewall to dsl-router sjoerdvvu Linux - Networking 2 02-24-2006 10:56 PM
Linux Router & Netgear Wireless Router DMaCATO Linux - Wireless Networking 1 04-30-2004 09:16 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 01:52 AM
Mandrake Firewall/router networked to US Robotics 8000A router jrzplace Linux - Networking 0 11-17-2003 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:31 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