02-19-2005
Quote:
Originally Posted by Phobos
You will need to use ipchains (masquerading). Here is a howto:
ftp://ftp.ibiblio.org/pub/Linux/docs...IPCHAINS-HOWTO
Basically what you want to do is setup your firewall rules so that eth0 will be external and eth1 will be internal. Then you will be able to foward packets.
Only why would you want to do this? Why not just hook up your other computer to the switch?
Hope this helps,
Robert
I need to do this because I am out of ports on my switch, and I already have the box with the two NICS in it.
10 More Discussions You Might Find Interesting
1. Linux
How to use NAT Router in linux Redhat 6 ? and what
packages and configuration are required ? (1 Reply)
Discussion started by: salhoub
1 Replies
2. Red Hat
I have just recently got into using Linux RedHat 9. So far I love it, I have set it up on a server I am running. Right now I have set up Samba and am running a file server for my house. I have four computers, the linux box is connected to the internet through a switch I have. There are two NICS in... (1 Reply)
Discussion started by: xTHESEUSx
1 Replies
3. Linux
how i add new routes to my linux machine (1 Reply)
Discussion started by: youmna
1 Replies
4. Linux
Hello All,
I know it's a tricky probably stupid question but I'm stuck.... :(
Is there any way to route different protocols through different eth cards for the same destination in Linux? With route add or something like it?
For instance:
FTP to/from 192.168.1.1 goes through eth0 - gw2... (1 Reply)
Discussion started by: pmpx
1 Replies
5. Red Hat
Hi,
I am writing a shell script which would ask user to select a locale and should set the locale for them.
In the script I am doing
export LANG=<user selected locale>
and i do 'locale' it would show me the changed locale.
But, when I come out of the program and do 'locale' it... (3 Replies)
Discussion started by: eamani_sun
3 Replies
6. Red Hat
Hi,
can someone tell me how to set the keyboard configaration at console in redhat Linux ES 4.
I don't want it in x-windows mode.
Also, how can I find all the keyboard configarations available.
Thanks in advance.
Sunny (0 Replies)
Discussion started by: eamani_sun
0 Replies
7. Red Hat
Hi Everyone,
I am trying to set up alias the only way I now how, buy making entry into .bashrc file.
The entry I made is
alias ll='ls -lrt'
It is not working as I expect. When I enter "alias" at the command line I get the following.
$ alias
alias l.='ls -d .* --color=tty'
alias... (2 Replies)
Discussion started by: jxh461
2 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have installed Redhat Linux 5 in VMWARE and would need to access through putty form the same desktop or... (2 Replies)
Discussion started by: SasiWipro
2 Replies
9. Red Hat
hello,
I was going through clustering documentation for Redhat, it says "Enable IP Aliasing support in the kernel by setting the CONFIG_IP_ALIAS kernel option to y. When specifying kernel options, under Networking Options, select IP aliasing support", I knew I should update /etc/sysctl.conf with... (1 Reply)
Discussion started by: bobby320
1 Replies
10. Proxy Server
Hi all,
We have been using Satellite to patch our RedHat servers for a while but up until recently these have only been virtual machines. Now we have a requirement to install a few physicals and I am trying to setup a sync a custom channel for the HP reository.
Our setup is that the... (2 Replies)
Discussion started by: wayned
2 Replies
LEARN ABOUT PHP
http_build_url
HTTP_BUILD_URL(3) 1 HTTP_BUILD_URL(3)
http_build_url - Build a URL
SYNOPSIS
string http_build_url ([mixed $url], [mixed $parts], [int $flags = HTTP_URL_REPLACE], [array &$new_url])
DESCRIPTION
Build a URL.
The parts of the second URL will be merged into the first according to the flags argument.
PARAMETERS
o $url
- (part(s) of) a URL in form of a string or associative array like parse_url(3) returns
o $parts
- same as the first argument
o $flags
- a bitmask of binary or'ed HTTP_URL constants; HTTP_URL_REPLACE is the default
o $new_url
- if set, it will be filled with the parts of the composed url like parse_url(3) would return
RETURN VALUES
Returns the new URL as string on success or FALSE on failure.
EXAMPLES
Example #1
A http_build_url(3) example
<?php
echo http_build_url("http://user@www.example.com/pub/index.php?a=b#files",
array(
"scheme" => "ftp",
"host" => "ftp.example.com",
"path" => "files/current/",
"query" => "a=c"
),
HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT
);
?>
The above example will output:
ftp://ftp.example.com/pub/files/current/?a=c
SEE ALSO
parse_url(3), http_build_str(3).
PHP Documentation Group HTTP_BUILD_URL(3)