All Questions
529
questions
3
votes
1
answer
22k
views
how to open ports for localhost on linux?
I've been reading for the past hour about opening ports on Ubuntu 12.04 and I can't seem to get anything to work. I'm running a program with an RPC server accepting local connections on localhost (127....
3
votes
1
answer
4k
views
IP forwarding on the same network
I have a raspberry pi that I have put wifi on. I am also using its ethernet connection to bring internet to my XBox 360. I want to bridge these connections AND keep them both on the same network.
For ...
3
votes
1
answer
4k
views
Properly portforwarding the external IP with iptables
I am trying to forward all the incoming internet/LAN requests on port 80 to my local machine (running Apache), current iptables work (forward incoming internet traffic to my desktop, but if I try to ...
3
votes
0
answers
2k
views
Routing traffic through custom tap device en-route to internet on linux
I have a VM that is using a tap device (tap2) and my goal is to filter all the traffic in/out of tap2 using a custom program written by me that runs in userspace.
The topology I came up with routes ...
3
votes
2
answers
6k
views
Redirect all local traffic to shadow-socks proxy
Iptables reroute to shadowsocks
I have ubuntu 20.04 vps with shadow-socks server on it.
I also have ubuntu 20.04 on my pc, with shadow-socks client running on it.
Currently using shadow-socks-libev ...
3
votes
1
answer
625
views
Linux not preferring ipv6 on dhcpv6 network
On my home network, I'm using a (Raspbian) Raspberry Pi as a wifi router with hostapd, isc-dhcp-server, radvd, pihole, and dnscrypt-proxy installed. I do not use dhcpcd, I use dhclient. As I only get ...
3
votes
0
answers
551
views
Iptables/Route with 2 ssid hostapd and subnets and openvpn setup
I'm struggling to setup iptables/routing in the correct way.
Objective is:
- Traffic from clients connected to wifi-KK to not use the tunnel but go via eth0 to router
- Traffic from clients ...
3
votes
0
answers
38
views
Redirect/Resend IP packets after WakeOnLan
my old pc is playing home server now and uses a lot of energy. Therefore i'd like to suspend it, when it's not needed and wake it up when someone tries to access it.
My plan is to notify a Raspberry ...
3
votes
1
answer
5k
views
Match multiple strings in iptables
I have 2 strings, and i wish to queue the packet if it contains both the strings ( something like ("jsh"&&"gjhyg")), i tried following ways, but they don't seem to work:
sudo iptables -A ...
3
votes
1
answer
5k
views
iptables config blocks OpenVPN with udp error "Operation not permitted (code=1)
With iptables cleaned out using the following, my OpenVPN client fires right up with no errors:
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
As soon ...
3
votes
1
answer
855
views
Using Raspberry PI as OpenVPN router for Asterisk
So, I've been banging my head with this for quite some time.
I have the following configuration:
OpenVPN server, IP 1.2.3.1
Asterisk server, connected to OpenVPN server, IP 1.2.3.3
Raspberry PI, ...
2
votes
2
answers
1k
views
Change all rules in iptables when changing IP address
I have a network gateway system using iptables to allow/deny traffic to/from an internal network. I have to manually add and remove rules in iptables depending on the requirements of the entities in ...
2
votes
1
answer
2k
views
When I use command [sudo iptables -t nat -A POSTROUTING -j MASQUERADE] in my ubuntu server 20.04, I lose the ability to resolve websites
Im trying to make a router out of ubuntu server for a class assignment. I've been looking at many guides to do so, most of which mention using the command from the title. Without the command, I cannot ...
2
votes
2
answers
714
views
Condense iptables CIDR list?
I have a list of about 170,000 IP ranges I would like to block ( Basically all IP's outside of the US and Canada ). The list is in CIDR format.
Is there any software that I can pipe this into and ...
2
votes
1
answer
199
views
Preserve incoming interface for answers in openwrt router
I have a Openwrt router with three interfaces:
interface br-lan: IP: 172.16.21.1 in a LAN network (172.16.21.0/24).
interface eth1: IP: 172.16.22.2 a WAN network (172.16.22.0/30) with Internet access....