Set new gateway for route to internet

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Set new gateway for route to internet
# 1  
Old 10-27-2017
Blade Set new gateway for route to internet

Hi all,
i have a rhel 6.2 with a default gateway.
This server is an Intranet office with no internet access.
DNS are already configured and it's possible to resolve my target.

My goal is to link my application (apache forward) only to http://mytarget.yyy through a new gateway (That does not have to replace the default GW), but for my application/server it must be transparent.

Or maybe there is a better way to resolve?

Thanks to all.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Linux

Unable to add route with a specific gateway IP

Hi, This is the routing table on a RHEL 7 server : # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.132.81.145 0.0.0.0 UG 100 0 0 eno49 10.132.81.144 0.0.0.0 255.255.255.240 U 100 0 0 eno49... (4 Replies)
Discussion started by: anaigini45
4 Replies

2. IP Networking

Firewall with sslvpn with Internet gateway

hi, i have this diagram internet | | -------------- |firewall/sslvpn | -------------- | | 192.168.0.0/24 | -------------------------- ---- ------------- | internet gateway win2003|----|10.1.2.0/24 |... (0 Replies)
Discussion started by: itik
0 Replies

3. AIX

IBM Server doesn't ping gateway unless you put a static route

Just want to know if someone has a clue about what could be happening here: I have an AIX box with four NICs in Ether channel connected to a Cisco Switch. When I try to ping the default gateway, sometimes it works, but sometimes it doesn't work unless it has a defined static route. Thanks... (1 Reply)
Discussion started by: witt
1 Replies

4. Shell Programming and Scripting

script to change default route when primary gateway dies

Hello all! We have two fedora routers one at each site. What we are trying to do worked using freesco but not on fedora, i'm not very good at scripting and need a little guidence. Basicly what we are trying to do is if the primary line dies, the router will change it's routes to go through our... (0 Replies)
Discussion started by: slacker
0 Replies

5. UNIX for Dummies Questions & Answers

Internet access via gateway

Internet access via gateway env: RedHat 6.1 Hi, Until now, we used PPP via an ISDN modem to connect our server to the internet. The ISDN ip-up/down scripts in /etc/ppp add ippp0 as the default route. From that point on we can for instance get mail via fetchmail. Now we have a ADSL... (1 Reply)
Discussion started by: progressdll
1 Replies

6. Windows & DOS: Issues & Discussions

Using Windows XP as my internet gateway

I have many question regarding many things in Unix. here is another. I have a Novell 5 server Windows 2000 advanced server running active directory Windows 2000 professional server running exchange 2000 Windows XP professional providing my internet gateway through 56K dial up modem (sad I... (1 Reply)
Discussion started by: electrode101
1 Replies

7. UNIX for Dummies Questions & Answers

Add route gateway -> Restart !! Lose it

:confused: Hi: I donīt know how to add route gateway and when restart the machine lose this route and put other. In SCO ver 5.6 Enterprise write: etc\route delete gateway route add gateway 199.199.1.1. so , netstat -rn to see if has change -> all ok Restart -> !!!... (2 Replies)
Discussion started by: AlvaroD
2 Replies

8. IP Networking

internet speed thru gateway/server

Other than security does having a separate linux box for the intranet server and a separate one for intranet gateway effect the speed of the internet connection. We have our server and gateway on 40GB HD 256 MB RAM 1.5 GHz Intel P3 Can the server/gateway be configured for better speed?... (1 Reply)
Discussion started by: ramyar
1 Replies
Login or Register to Ask a Question
routes(4)						     Kernel Interfaces Manual							 routes(4)

NAME
routes - Specifies Internet routing information to the routing tables SYNOPSIS
/etc/routes DESCRIPTION
Static routes can be defined in the /etc/routes file. The /etc/routes file identifies static routes that are automatically added to the network routing tables with the /usr/sbin/route add command. The /sbin/init.d/route script contains the /usr/sbin/route add command that is executed for each entry in the /etc/routes file when the network is restarted on the system or the system is rebooted. The general format of an entry in the /etc/routes file is: Dest Name1 Name2 The following is a brief description of each element in an /etc/routes file entry: A keyword that indicates whether the route is to a net- work or to a host. The two possible keywords are -net and -host. The name or address of the destination network or host. Name1 can be either a symbolic name (as used in the /etc/hosts or /etc/networks file) or an Internet address specified in dotted-decimal format. The name or address of the gateway host to which messages should be forwarded. Name2 can be either a symbolic name (as used in the /etc/hosts file) or an Internet address specified in dotted-decimal format. The routes file is a Context-Dependent Symbolic Link (CDSL) and must be maintained as such. See the System Administration manual for more information. EXAMPLES
To specify a route to a network through a gateway host with an entry in the /etc/routes file, enter: -net net2 host4 This example specifies a route to a network, net2, through the gateway host4. To specify a route to a host through a gateway host with an entry in the /etc/routes file, enter: -host host2 host4 This example specifies a route to a host, host2, through the gateway host4. To specify a route to a default gateway host with an entry in the /etc/routes file, enter: default 130.9.0.5 This example specifies a route to a default gateway with an Internet address of 130.9.0.5. FILES
Contains the /usr/sbin/routed add command. RELATED INFORMATION
Commands: route(8) Daemons: gated(8), routed(8) Files: gated.conf(4) Network Administration delim off routes(4)