All Questions
60
questions
1
vote
1
answer
308
views
Redirect active FTP traffic to another server using iptables
Network Scheme - IP addresses are fictitious
Firewall SO: Centos 6
I recently enabled two-factor authentication, using Google Authenticator, and with that transfers via SCP for some users were ...
0
votes
0
answers
118
views
Fail2Ban redirect instead of drop
I'm trying to configure Fail2ban to redirect instead of banning, I've found plenty of posts about redirecting to a different port for HTTP traffic to display a different webpage, but I need to ...
0
votes
0
answers
90
views
Is it possible to redirect outgoing traffic on an already used port without using iptables?
I am wondering is there is another solution than iptables to redirect outgoing traffic on a port that is already used to another one, on the same machine locally.
Thanks.
1
vote
0
answers
420
views
Redirect traffic of one proxy to another one
I have installed a v2ray client on my server and I can connect to it successfully. Assume it is listening on following address:
http://localhost:1089
I also installed MTProto proxy on my server to ...
0
votes
1
answer
240
views
Redirect specific traffic through a VPN interface
I,
I would like to redirect specific ports through a specific interface.
Until now what I accomplished it was
cat /etc/iproute2/rt_tables | grep "200 force.route" > /dev/null
if [ $? != ...
0
votes
1
answer
4k
views
iptables NAT REDIRECT
I have a server that is receiving syslog traffic. Many of my devices can only send to the default udp/514 port. My syslog server can't run on ports <1024 and is running on 5000. I have a nat ...
0
votes
1
answer
428
views
iptables doesn't redirect 443 to 8443 on local machine
I want to redirect all the traffic from my computer from port 443 to port 8443. All the traffic is on the same machine. A proxy server is listening to port 8443 and i tried to add the following Rule:
...
0
votes
0
answers
439
views
iptables - perfect forwarding of port range to single port - p2p NAT traversal - how to keep the source UDP port untouched on the server?
To all the iptables gurus out there:
I'm doing a little research on the viability of doing UDP hole punching to achieve NAT traversal in my network - I'm trying to figure out which UDP ports EXACTLY ...
0
votes
0
answers
326
views
Redirecting email traffic using iptables or rinetd isn't working but http traffic is
Initial situation:
I had a shared cpanel hosting account (website + email).
Let's call it mydomain.com with ip: a.b.c.d
The DNS RECORDS were like so:
mydomain.com A a.b.c.d
mail.mydomain.com A a.b.c....
1
vote
1
answer
4k
views
firewall-cmd not allowing loopback redirect
I am trying to redirect a port on the loopback interface, but it does not seem to be working
firewall-cmd --list-all-zones
trusted (active)
target: ACCEPT
interfaces: lo
...
rich rules:
rule ...
1
vote
0
answers
479
views
Redirect clients based on MAC address - OpenWRT/LEDE
on OpenWRT (LEDE) router I have the following redirection:
config redirect
option proto 'tcp'
option target 'DNAT'
option dest 'lan'
option _name 'Proxy for HTTP'
option src 'lan'
...
0
votes
1
answer
2k
views
(dnat|redirect) with masquerade doesn't work
I have a problem, till a bit ago it was working just fine. but now, it doesn't work, but on another testing server it works just fine
I force all traffic to tor, and this part works just fine.
...
0
votes
1
answer
321
views
Redirect works from external network, but not internal
We have a nat with prerouting like this:
iptables -t nat -I PREROUTING -p tcp -d mysite.com --dport 37777 -j DNAT --to-destination 192.168.1.2:37777
If I try to connect from other network, the ...
0
votes
0
answers
97
views
Infos about iptables DNAT/REDIRECT to local
I'm using Qubes OS, a system based on the Xen microkernel, which let you run easily multiple Virtual Machines and compartmentalize your digital life.
All the domains are connected by default (through ...
0
votes
1
answer
42
views
Redirecting denied connections to ports 80, 443 to other IP that hosts an error page
Okay, here we go.. I am using UFW on my Debian 8 server to block all incoming connections on ports 80 and 443, except for those that I have allowed. However, I need to redirect those dropped ...
0
votes
1
answer
3k
views
How to hide port number in address bar for jenkins
I have setup Jenkins to access on port 80 rather than 8080 using iptables on Ubuntu 16.04 by following the article on Jenkins documentation. It is working fine and I can access the Jenkins using url ...
0
votes
0
answers
607
views
How to redirect HTTP and HTTPS traffic to custom chain iptables
I am trying to redirect all output HTTP and HTTPS packets to my custom chain, but it doesn't work
Here is my rules
iptables -t nat -N CUSTOMCHAIN
iptables -t nat -A PREROUTING -p tcp --dport 443 -j ...
0
votes
1
answer
94
views
Connect clients of different networks that I CANT change its netconfig
I have two clients
Android phone doing hotspot (192.168.43.1/24)
Another device with static ip (192.168.1.10/24)
I CAN'T change the network config of anyone, first because android hotspot is ...
0
votes
1
answer
1k
views
Conditional Port Redirection on Local Machine Ubuntu iptables
I am new to this community and also to the tool I want to use, namely iptables, so please bear with my incompetence ^_^
Anyway, my situation is as follows:
I have a private LAN with private IP ...
0
votes
0
answers
23
views
minimalistic way of redirecting http/s traffic
In my scenario, I dynamically provisioning compute nodes to preform a task - in this scenario, a client is given the IP of the node to access using a specific application that access the application ...
0
votes
3
answers
1k
views
IPTables forward to dynamic IP
I have a server running on e.g. servera.example.com and one on serverb.example.com. I want to redirect all port 80 traffic to servera.example.com to serverb.example.com, and leave all other ports as-...
0
votes
1
answer
305
views
CentOS 6.5 Apache redirect to 127.0.0.1
I have to install a new CentOS Server v6.5
I already install httpd and want to access Apache Welcome Page by serverIP.
But I get a timeout, so I stop iptables service for a moment.
Now I get an 301 ...
2
votes
1
answer
15k
views
IPTABLES Redirect a port to another IP
I have tried several post to configure this redirect but is not working, this is what I need
I am receiving packets on port 8080 and I want to redirect the packets to another IP in the same server, ...
6
votes
1
answer
9k
views
pf (Mac OS X) rule to redirect all traffic to a specific ip/port
I'm trying to recreate this iptables setup (from https://github.com/darkk/redsocks) with pf:
iptables -t nat -A REDSOCKS -p tcp -d 10.0.0.0/8 -j REDIRECT --to-ports 12345
iptables -t nat -A OUTPUT -p ...
0
votes
1
answer
3k
views
Iptables redirect HTTP traffic to proxy
I have a local HTTP proxy running, if I configure my browser to go through it works perfectly but I would need to leave the browser configuration blank and only redirect the traffic to the proxy with ...
2
votes
1
answer
2k
views
Port redirection with iptables to localhost / blocking the destination port
I like to forward all traffic coming to 80 to be redirected to 8000.
I used
iptables -tnat -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8000
But then port 8000 is still open to ...
2
votes
1
answer
52k
views
iptables destination ip and port
I am looking for a way to forward all traffic(to any port) from a pc to a certain ip.
Looking at the rule below :
iptables -t nat -A PREROUTING -p tcp --dport 443 --jump DNAT --to-destination 129.94....
0
votes
0
answers
386
views
iptables only partially redirecting ports
I am moving over everything that uses port 80 to port 9000 on my server, so I configured my apache + it's virtual hosts to listen to 9000 using ip xx.xx.xx.106, and I set up my iptables to preroute ...
0
votes
1
answer
365
views
redirect traffic from 2 Ubuntu external NICs to specific internal hosts
I am having problems redirecting incoming traffic to 2 external facing interfaces on my Ubuntu 12.10 server to 2 separate internal hosts. I am able to redirect incoming traffic on my eth0 just fine to ...
1
vote
2
answers
22k
views
gateway iptables dns redirect
I'm having a problem with redirecting pc's dns requests to a local dns server. I want to block access to other dns services except my own. I've found different methods of doing this, none work here. ...
-1
votes
1
answer
115
views
Force every HTTPS to one url
Is there a bug free way to redirect/forward all HTTPS requests which forwarding through a router to one url ?
I want to redirect all clients https to specific page something like hotspots walled ...
1
vote
1
answer
3k
views
Port redirection from 80 to 8080 using iptables not working
Good day, I had a Tomcat running on port 80 on a CentOS server with IP 10.33.46.68. When I tried to open "http://10.33.46.68" on my notebook I could see Tomcat welcome page.
Then I changed Tomcat ...
2
votes
3
answers
634
views
iptables intercept local traffic
I hope someone can help me out with a somewhat simple task.
I'm trying to redirect a client in my router through my desktop PC, so I can dump the traffic and analyze it (its potential source of ...
4
votes
1
answer
3k
views
Iptables: how to redirect port 80 only for a specific domain
sorry for the title, but im such a newbie in server configurations. I have a problem (of course) and i will try my best to explain it to you:
I have a vps, debian based with apache2 and in it I have ...
-3
votes
3
answers
21k
views
how to redirect to an URL using iptables?
I want to redirect all the incoming requests to an URL instead of an IP address how can i archive this.. And when I redirect using IP address the redirection is happening but the redirected IP/URL is ...
4
votes
3
answers
3k
views
How to redirect ports for on a virtual interface?
There are two IPs associated with one physical network interface eth0 and eth0:0.
The following works fine for the first interface:
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j ...
0
votes
2
answers
651
views
Iptables DNAT / only one url
I have a rule similar to this:
iptables -t nat -I PREROUTING -p tcp --dport 80 -s 192.168.1.5 -j DNAT --to-destination 192.168.1.2:80
which redirects all http requests from 1.5 host to 1.2.. I want ...
5
votes
2
answers
7k
views
Iptables - Redirect outbound traffic on a port to inbound traffic on 127.0.0.1
Is there a way to redirect traffic set to go out of the server to another IP, back to the server on localhost (preferably as if it was coming from the original destination)?
I'd basically like to be ...
3
votes
1
answer
3k
views
SSH traffic redirect for LXC containers
I use LXC containers for ssh hosting and I would like to redirect SSH/SFTP traffic (using port 22) to the container's private IP address but on a user/IP basis. That is - one source port, many ...
1
vote
1
answer
4k
views
iptables redirect range and exclude
i have this iptables and working.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 0:20 -j REDIRECT --to-port 8080 #bypass SSH
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 23:442 -j ...
0
votes
1
answer
2k
views
http -> https redirection with websockets
I have a Node.js app which is heavily reliant on websockets. I want to redirect anyone trying to access it via http (80) to https (443). I would use nginx however it does not play well with websockets....
-1
votes
1
answer
1k
views
URL Redirect to IP on LAN [duplicate]
Possible Duplicate:
Is there a way to forward a port based on subdomain?
wOk here is what I need to do:
Listen on various ports and route to LAN IP addresses based on url and port.
So I have a ...
1
vote
1
answer
646
views
Redirect external router port to external IP and port
I have a WRT54GL home router and I want requests coming to the router public IP address on port 97 to be redirected to an external IP and port, for example 209.85.148.99 (google.com) and port 80.
The ...
2
votes
3
answers
9k
views
Redirecting DNS port to a specific DNS server
I use a ubuntu server as a router for my users on a NAT network. I want to force all users to use a local dns server setup on the network. Even if they use a public DNS server in their client machines,...
0
votes
2
answers
228
views
redirecting ports, and allowing full access to the internet for the local network?
This is all the rules I currently have on the server:
/usr/sbin/iptables -A PREROUTING -t nat -i eth1 -p tcp --dport 6112 -j DNAT --to 10.0.0.3:6112
/usr/sbin/iptables -A PREROUTING -t nat -i eth1 -p ...
2
votes
1
answer
1k
views
Redirecting traffic based on ports (iptables)
I am currently working on an application that is able to conduct ARP poisoning so as to become the man in the middle and do some intelligent filtering. I will explain the problem in details in steps ...
0
votes
2
answers
845
views
Iptable : Redirect https to http except for specific host
I have multiple websites on my server, and just one of them is through https (say : https://admin.example.com).
But if an user tries to access to https://www.example.com, he got a warning about an ...
4
votes
6
answers
23k
views
Redirect from http to https [duplicate]
I have a Hudson/Jenkins installation which runs on port 443, so I can access it with https://ci.mydomain.com.
I do not have a webserver running on port 80 like Apache Httpd, but I want if a user types ...
2
votes
2
answers
495
views
Iptables conditional internal redirection
I want to make iptables redirect internally from one port to another only if a service is listening to that port. Is it possible?
1
vote
1
answer
546
views
redirection made by iptables take effect even after i removed the rule from the chain
for example i added the following rule to the PREROUTING chain:
iptables -t nat -A PREROUTING -d 210.210.210.210 -j DNAT --to-destination 200.200.200.200
(lets say that both of the ip addresses are ...