Sponsored Content
Operating Systems Linux Red Hat How to route multiple IP addresses with IPTABLE command? Post 302579868 by Dhruvak on Wednesday 7th of December 2011 01:08:36 AM
Old 12-07-2011
Hi Dude2cool,

Thanks for reply.
I tried
Code:
 
 
iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport 80 --src-range 10.111.111.22-10.111.111.23 -j DNAT --to-destination 10.13.0.16:3128
 
iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport 80 --source-range 10.111.111.22-10.111.111.23 -j DNAT --to-destination 10.13.0.16:3128
 
iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport 80 --src-range 10.111.111.22 - 10.111.111.23 -j DNAT --to-destination 10.13.0.16:3128

but
unfortunately none of them are working.


Will you please suggest me if I am making any mistake or do you have any other command?

Thanks,
Dhruvak
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

ipfw - dynamic rules and multiple IP addresses with outgoing packets

Here's the problem: Some email-service providers (like Google) have more than one server and distribute the load such that, e.g. the incoming mail server imap.gmail.com is assigned to more than one IP-address. With stateful rules, the ipfw firewall correctly allows outgoing packages to one of... (1 Reply)
Discussion started by: steffen
1 Replies

2. Shell Programming and Scripting

How can i send mail to multiple addresses in same domain in bash?

Suppose i have a txt file that is the list of the addresses,something like: lala0045 john james lala0234 george james and i want to send an email to lala0045@blabla.com and lala0234@blabla.com,the same domain...what is the exact syntax i should use in my script? there is a command... (10 Replies)
Discussion started by: bashuser2
10 Replies

3. Shell Programming and Scripting

bash, ssh and expect to multiple ip addresses

Hi, I need script that will allow me to connect to multiple clients using ssh on Ubuntu terminal... I have a txt file with the ip addresses of clients, i need a script that will connect to everyone one by one and send some commands... The idea is to check some settings on every client... (2 Replies)
Discussion started by: marko07
2 Replies

4. Shell Programming and Scripting

Echo - Sending mail to multiple addresses

Hi, If I want my script to send a mail to multiple recipients I can do the following: if then echo $err_string1 | mailx -s "UAT CPU ALERT" 1@email.com echo $err_string1 | mailx -s "UAT CPU ALERT" 2@email.com fi Can this also be done something like: ... (1 Reply)
Discussion started by: runnerpaul
1 Replies

5. Shell Programming and Scripting

Perl - match e-mail addresses in multiple files

Hi, I'm trying to write a script that will check multiple files in a directory (all the relevant filenames begin "TT04.NOTES") for e-mail addresses, and then print these addresses to screen with a count at the bottom. I'm a bit of a novice with Perl but thought it would be the best tool for the... (2 Replies)
Discussion started by: wf1974
2 Replies

6. UNIX for Advanced & Expert Users

Assigning multiple IPV6 addresses with ISC dhcpd

Hi, Apologies if this is the wrong forum or this question has been answered already. I'm using the ISC dhcpd server on Centos 6.0, and can happily assign a single IPV6 address to a client with entries like this: subnet6 fd01:0:0:5::/64 { option dhcp6.name-servers fd01:0:0:5::226;... (0 Replies)
Discussion started by: jusme
0 Replies

7. Windows & DOS: Issues & Discussions

Script to ftp in to multiple ip addresses

Hello Is there an easy way to login to various ip's..one after the other. I need to login to about 30 aix boxes and put a file in each one... Cheers (1 Reply)
Discussion started by: Grueben
1 Replies

8. UNIX for Dummies Questions & Answers

Script to ftp in to multiple ip addresses

Hello Is there an easy way to login to various ip's..one after the other. I need to login to about 30 aix boxes and put a file in each one... Cheers (1 Reply)
Discussion started by: Grueben
1 Replies

9. Red Hat

Sendmail - Masquerading multiple domains with different addresses

Hello Friends, I am running Sendmail 8.14 on rhel6. I have one simple question regarding domain masquerading, i would want to masquerade different domains with different addresses. By that what i mean is that lets say i have 3 domains as home.com, example.com, test.com and i would want to... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

10. UNIX for Dummies Questions & Answers

How to ping multiple ip addresses?

Hi, I have ip addresses from 192.168.0.1 to 192.168.0.10. I have to ping those series of IP address in single command? Which command i can use? (2 Replies)
Discussion started by: thomasraj87
2 Replies
tninfo(1M)						  System Administration Commands						tninfo(1M)

NAME
tninfo - print kernel-level network information and statistics SYNOPSIS
/usr/sbin/tninfo [-h hostname] [-m zone-name] [-t template] DESCRIPTION
tninfo provides an interface to retrieve and display kernel-level network information and statistics. OPTIONS
-h hostname Display the security structure for the specified host in the remote-host cache. The output should reflect what is specified in the tnrhdb database. -m zone-name Display the MLP configuration associated with the specified zone. The output should reflect what is specified in the tnzonecfg database. -t template Display the structure associated with the specified template. The output should reflect what is specified in the tnrhtp database. EXAMPLES
Example 1 Displaying Remote Host Structures Cached in the Kernel This example shows the remote host structures cached in the kernel. The output reflects the definition in the tnrhdb database. # tninfo -h machine1 IP address= 192.168.8.61 Template = cipso Example 2 Displaying Multilevel Ports for the Global Zone This example shows the kernel-cached MLPs for the global zone. The output reflects the definition in the tnzonecfg database, plus any dynamically allocated MLPs. private indicates zone-specific MLPs. # tninfo -m global private:23/tcp;111/tcp;111/udp;515/tcp;2049/tcp;6000-6003/tcp; 32812/tcp;36698/ip;38634/tcp;64365/ip shared: 6000-6003/tcp Example 3 Displaying the cipso Template Definition This example shows the kernel-cached cipso template definition. The output reflects the definition in the tnrhtp database. # tninfo -t cipso ===================================== Remote Host Template Table Entries: __________________________ template: cipso host_type: CIPSO doi: 1 min_sl: ADMIN_LOW hex: ADMIN_LOW max_sl: ADMIN_HIGH hex: ADMIN_HIGH FILES
/etc/security/tsol/tnrhdb Trusted network remote-host database /etc/security/tsol/tnrhtp Trusted network remote-host templates /etc/security/tsol/tnzonecfg Trusted zone configuration database ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWtsu | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ The command line is Committed. The output is Uncommitted. SEE ALSO
tnd(1M), tnctl(1M), attributes(5) How to Synchronize Kernel Cache With Network Databases in Solaris Trusted Extensions Administrator's Procedures NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions. SunOS 5.11 20 Jul 2007 tninfo(1M)
All times are GMT -4. The time now is 10:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy