Skip to content

u/72admin

In this archive from Apr 2019 to Apr 2019

0
posts
13
comments
0
media
18
score

Use virt-manager to manage VMs, аnd use RDP client (such as remmina) to connect your windows VMs. You should allow RDP connections on your windows guest before.

1 points
  1. You should enable IP forwarding on your ubuntu server. (net.ipv4.ip_forward=1 in /etc/sysctl.conf)
  2. You should configure your firewall (iptables) to permit established, related packets from outside and forwarding from virtual network (tun or tap interface)
  3. You should MASQUERADE forwarded traffic.

Here is an example of sysctl and iptables configuration: (its my private cloud openvpn server)

​

# lo accept

iptables -A INPUT -i lo -j ACCEPT

​

# ESTABLISHED,RELATED

iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT

iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT

​

# Enable NAT

iptables -A INPUT -i br0 -m iprange --src-range 10.254.2.200-10.254.2.254 -j ACCEPT

iptables -A FORWARD -i br0 -m iprange --src-range 10.254.2.200-10.254.2.254 -j ACCEPT

iptables -t nat -A POSTROUTING -m iprange --src-range 10.254.2.200-10.254.2.254 -o ens3 -j MASQUERADE

​

# Open Ports

iptables -A INPUT -p tcp -m multiport --dports 443,80,1194,2222 -j ACCEPT

​

# Default DROP

iptables -P INPUT DROP

iptables -P FORWARD DROP

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.