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
IPROUTE(3)						     Library Functions Manual							IPROUTE(3)

NAME
iproute - Internet route table manager SYNOPSIS
bind -a #P /net /net/iproute /net/ipifc DESCRIPTION
The iproute device allows the specification of routes for families of IP addresses. It maintains a kernel-resident routing table for IP addresses used by TCP, IL and UDP. Each route consists of a destination IP address, an IP mask, and an IP gateway address. Every packet sent by the system is routed according to the route table. An address matches the route table entry when a packet's destination address matches the table destination address under the mask. When a match is found, the packet is sent to the gateway IP address. If there is no match, the packet is sent with the original destination address. If there are several matches, the one whose mask has the fewest leading zeros is chosen. (Because of the definition of IP masks, this mask preserves the largest portion of the address and is therefore the most specific.) This is forced by storing the routes in decreasing number of ones order and returning the first match. The default gateway has no ones in the mask and is thus the last matched. Reading iproute reports the current routes entered in the table. Writing control messages to iproute edits the table. Route entries are made by writing a string of format add ipdest mask ipgateway Entries are deleted by writing a string of format delete ipdest mask The whole table can be cleared by writing the string For example, to install a gateway address to accept all IP packets from a machine: % echo 'add 0.0.0.0 0.0.0.0 131.107.1.5' > /net/iproute % cat /net/iproute 0.0.0.0 & 0.0.0.0 -> 131.107.1.5 Reading ipifc reports the current IP interfaces being used, one line per interface, showing the device, the maximum transfer unit, the local address, the network mask, and the network address. SOURCE
/sys/src/9/port/deviproute.c SEE ALSO
ip(3), ipconfig(8) IPROUTE(3)